323 lines
64 KiB
HTML
323 lines
64 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.6"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>EnTT: src/entt/entity/entity.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">EnTT<span id="projectnumber"> 3.12.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.6 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_66e9674e8206a335795995fa32a03c91.html">entt</a></li><li class="navelem"><a class="el" href="dir_e3a7bb56c55e5c2286e2fe96e197d4f5.html">entity</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">entity.hpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef ENTT_ENTITY_ENTITY_HPP</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ENTT_ENTITY_ENTITY_HPP</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <cstddef></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <cstdint></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <type_traits></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include "../config/config.h"</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include "fwd.hpp"</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">namespace </span>internal {</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment">// waiting for C++20 (and std::popcount)</span></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">int</span> popcount(Type value) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordflow">return</span> value ? (int(value & 1) + popcount(value >> 1)) : 0;</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span>}</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">template</span><<span class="keyword">typename</span>, <span class="keyword">typename</span> = <span class="keywordtype">void</span>></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">struct </span>entt_traits;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">struct </span>entt_traits<Type, std::enable_if_t<std::is_enum_v<Type>>></div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> : entt_traits<std::underlying_type_t<Type>> {</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">using </span>value_type = Type;</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>};</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">struct </span>entt_traits<Type, std::enable_if_t<std::is_class_v<Type>>></div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> : entt_traits<typename Type::entity_type> {</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">using </span>value_type = Type;</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span>};</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">template</span><></div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="keyword">struct </span>entt_traits<std::uint32_t> {</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">using </span>value_type = std::uint32_t;</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">using </span>entity_type = std::uint32_t;</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">using </span>version_type = std::uint16_t;</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> entity_type entity_mask = 0xFFFFF;</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> entity_type version_mask = 0xFFF;</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>};</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><span class="keyword">template</span><></div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="keyword">struct </span>entt_traits<std::uint64_t> {</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">using </span>value_type = std::uint64_t;</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">using </span>entity_type = std::uint64_t;</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">using </span>version_type = std::uint32_t;</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> entity_type entity_mask = 0xFFFFFFFF;</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> entity_type version_mask = 0xFFFFFFFF;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span>};</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span>} <span class="comment">// namespace internal</span></div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="keyword">template</span><<span class="keyword">typename</span> Traits></div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html"> 74</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1basic__entt__traits.html">basic_entt_traits</a> {</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> length = internal::popcount(Traits::entity_mask);</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keyword">static_assert</span>(Traits::entity_mask && ((<span class="keyword">typename</span> Traits::entity_type{1} << length) == (Traits::entity_mask + 1)), <span class="stringliteral">"Invalid entity mask"</span>);</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">static_assert</span>((<span class="keyword">typename</span> Traits::entity_type{1} << internal::popcount(Traits::version_mask)) == (Traits::version_mask + 1), <span class="stringliteral">"Invalid version mask"</span>);</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e"> 82</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a> = <span class="keyword">typename</span> Traits::value_type;</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793"> 84</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a> = <span class="keyword">typename</span> Traits::entity_type;</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#aa3fe33d19b228d07c5560b907f910c10"> 86</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#aa3fe33d19b228d07c5560b907f910c10">version_type</a> = <span class="keyword">typename</span> Traits::version_type;</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#a6b93920c3b3347171c485fdbdead14ec"> 89</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a> <a class="code hl_variable" href="classentt_1_1basic__entt__traits.html#a6b93920c3b3347171c485fdbdead14ec">entity_mask</a> = Traits::entity_mask;</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#a0bd49c229b049ac5dc0fb21195b4bcc3"> 91</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a> <a class="code hl_variable" href="classentt_1_1basic__entt__traits.html#a0bd49c229b049ac5dc0fb21195b4bcc3">version_mask</a> = Traits::version_mask;</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#a4eb435084cf47d4fbc840654f2e8c9e0"> 98</a></span> [[nodiscard]] <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a4eb435084cf47d4fbc840654f2e8c9e0">to_integral</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a> value) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a><span class="keyword">></span>(value);</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> }</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#a8c02bc8db33817ec509b7d32773fa463"> 107</a></span> [[nodiscard]] <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a8c02bc8db33817ec509b7d32773fa463">to_entity</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a> value) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keywordflow">return</span> (<a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a4eb435084cf47d4fbc840654f2e8c9e0">to_integral</a>(value) & <a class="code hl_variable" href="classentt_1_1basic__entt__traits.html#a6b93920c3b3347171c485fdbdead14ec">entity_mask</a>);</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> }</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#af1e3c418f09660a761fab21078df6700"> 116</a></span> [[nodiscard]] <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#aa3fe33d19b228d07c5560b907f910c10">version_type</a> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#af1e3c418f09660a761fab21078df6700">to_version</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a> value) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#aa3fe33d19b228d07c5560b907f910c10">version_type</a><span class="keyword">></span>(<a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a4eb435084cf47d4fbc840654f2e8c9e0">to_integral</a>(value) >> length);</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#a42a94cfb5923165804979505731ad7c6"> 125</a></span> [[nodiscard]] <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a42a94cfb5923165804979505731ad7c6">next</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a> value) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">const</span> <span class="keyword">auto</span> vers = <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#af1e3c418f09660a761fab21078df6700">to_version</a>(value) + 1;</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a3d3c3e8fd538fb4394ea505dd0415ec5">construct</a>(<a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a8c02bc8db33817ec509b7d32773fa463">to_entity</a>(value), <span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#aa3fe33d19b228d07c5560b907f910c10">version_type</a><span class="keyword">></span>(vers + (vers == <a class="code hl_variable" href="classentt_1_1basic__entt__traits.html#a0bd49c229b049ac5dc0fb21195b4bcc3">version_mask</a>)));</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> }</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#a3d3c3e8fd538fb4394ea505dd0415ec5"> 140</a></span> [[nodiscard]] <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a3d3c3e8fd538fb4394ea505dd0415ec5">construct</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a> <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>, <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#aa3fe33d19b228d07c5560b907f910c10">version_type</a> version) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a>{(<a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a> & <a class="code hl_variable" href="classentt_1_1basic__entt__traits.html#a6b93920c3b3347171c485fdbdead14ec">entity_mask</a>) | (<span class="keyword">static_cast<</span><a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a><span class="keyword">></span>(version) << length)};</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> }</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="classentt_1_1basic__entt__traits.html#ad00358aea03a19c59efae2f8c005ae9b"> 154</a></span> [[nodiscard]] <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#ad00358aea03a19c59efae2f8c005ae9b">combine</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a> lhs, <span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entity_type</a> rhs) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> mask = (<a class="code hl_variable" href="classentt_1_1basic__entt__traits.html#a0bd49c229b049ac5dc0fb21195b4bcc3">version_mask</a> << length);</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">value_type</a>{(lhs & <a class="code hl_variable" href="classentt_1_1basic__entt__traits.html#a6b93920c3b3347171c485fdbdead14ec">entity_mask</a>) | (rhs & mask)};</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> }</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span>};</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span><span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="structentt_1_1entt__traits.html"> 165</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1entt__traits.html">entt_traits</a>: <a class="code hl_class" href="classentt_1_1basic__entt__traits.html">basic_entt_traits</a><internal::entt_traits<Type>> {</div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="structentt_1_1entt__traits.html#a9289d7b999755669c5caa3df9626ec3e"> 167</a></span> <span class="keyword">using </span><a class="code hl_class" href="classentt_1_1basic__entt__traits.html">base_type</a> = <a class="code hl_class" href="classentt_1_1basic__entt__traits.html">basic_entt_traits<internal::entt_traits<Type></a>>;</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="structentt_1_1entt__traits.html#a187c362626da03111928aff88f43bb83"> 169</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> std::size_t <a class="code hl_variable" href="structentt_1_1entt__traits.html#a187c362626da03111928aff88f43bb83">page_size</a> = ENTT_SPARSE_PAGE;</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span>};</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span><span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"><a class="line" href="namespaceentt.html#ad2e252dbd8c8ebd486a3d84fbf8c2602"> 177</a></span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entt_traits<Entity>::entity_type</a> <a class="code hl_function" href="namespaceentt.html#ad2e252dbd8c8ebd486a3d84fbf8c2602">to_integral</a>(<span class="keyword">const</span> Entity value) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a4eb435084cf47d4fbc840654f2e8c9e0">entt_traits<Entity>::to_integral</a>(value);</div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span>}</div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span><span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"><a class="line" href="namespaceentt.html#a1202b4027d32db124efffdf1f2f8c5a2"> 186</a></span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entt_traits<Entity>::entity_type</a> <a class="code hl_function" href="namespaceentt.html#a1202b4027d32db124efffdf1f2f8c5a2">to_entity</a>(<span class="keyword">const</span> Entity value) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#a8c02bc8db33817ec509b7d32773fa463">entt_traits<Entity>::to_entity</a>(value);</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span>}</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> </div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span><span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="namespaceentt.html#a4b7d8995ec3448ce5151309ef2281d33"> 195</a></span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1basic__entt__traits.html#aa3fe33d19b228d07c5560b907f910c10">entt_traits<Entity>::version_type</a> <a class="code hl_function" href="namespaceentt.html#a4b7d8995ec3448ce5151309ef2281d33">to_version</a>(<span class="keyword">const</span> Entity value) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classentt_1_1basic__entt__traits.html#af1e3c418f09660a761fab21078df6700">entt_traits<Entity>::to_version</a>(value);</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span>}</div>
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> </div>
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="structentt_1_1null__t.html"> 200</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1null__t.html">null_t</a> {</div>
|
|
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"><a class="line" href="structentt_1_1null__t.html#a645f6d96cbb99f7b245058a05bf0e28b"> 207</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">operator</span> Entity() const noexcept {</div>
|
|
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">using </span>traits_type = <a class="code hl_struct" href="structentt_1_1entt__traits.html">entt_traits<Entity></a>;</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> value = traits_type::construct(traits_type::entity_mask, traits_type::version_mask);</div>
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <span class="keywordflow">return</span> value;</div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> }</div>
|
|
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> </div>
|
|
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"><a class="line" href="structentt_1_1null__t.html#aed9c63b072bec4c7c6c15dc110620a93"> 218</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structentt_1_1null__t.html#aed9c63b072bec4c7c6c15dc110620a93">operator==</a>([[maybe_unused]] <span class="keyword">const</span> <a class="code hl_struct" href="structentt_1_1null__t.html">null_t</a> other) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> }</div>
|
|
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div>
|
|
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"><a class="line" href="structentt_1_1null__t.html#a6736a78ac5ffa158b229fdf4fefcdc34"> 227</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structentt_1_1null__t.html#a6736a78ac5ffa158b229fdf4fefcdc34">operator!=</a>([[maybe_unused]] <span class="keyword">const</span> <a class="code hl_struct" href="structentt_1_1null__t.html">null_t</a> other) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> }</div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> </div>
|
|
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"><a class="line" href="structentt_1_1null__t.html#a1b143232fe50fc52fee376f4f8e23a76"> 238</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structentt_1_1null__t.html#a1b143232fe50fc52fee376f4f8e23a76">operator==</a>(<span class="keyword">const</span> Entity <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keyword">using </span>traits_type = <a class="code hl_struct" href="structentt_1_1entt__traits.html">entt_traits<Entity></a>;</div>
|
|
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="keywordflow">return</span> traits_type::to_entity(<a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>) == traits_type::to_entity(*<span class="keyword">this</span>);</div>
|
|
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> }</div>
|
|
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> </div>
|
|
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="structentt_1_1null__t.html#a2c8a4bdade66b7f7520d10b4bb4fc858"> 250</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structentt_1_1null__t.html#a2c8a4bdade66b7f7520d10b4bb4fc858">operator!=</a>(<span class="keyword">const</span> Entity <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="keywordflow">return</span> !(<a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a> == *<span class="keyword">this</span>);</div>
|
|
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> }</div>
|
|
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span>};</div>
|
|
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> </div>
|
|
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span><span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"><a class="line" href="namespaceentt.html#a6bd28fe24ca2b9544e78a296ce43ec2e"> 263</a></span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">operator==</a>(<span class="keyword">const</span> Entity <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>, <span class="keyword">const</span> <a class="code hl_struct" href="structentt_1_1null__t.html">null_t</a> other) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <span class="keywordflow">return</span> other.operator==(<a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>);</div>
|
|
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span>}</div>
|
|
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> </div>
|
|
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span><span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"><a class="line" href="namespaceentt.html#a0bfb4a52063118617d88ed10c9241cf1"> 275</a></span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">operator!=</a>(<span class="keyword">const</span> Entity <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>, <span class="keyword">const</span> <a class="code hl_struct" href="structentt_1_1null__t.html">null_t</a> other) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <span class="keywordflow">return</span> !(other == <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>);</div>
|
|
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span>}</div>
|
|
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
|
|
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="structentt_1_1tombstone__t.html"> 280</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1tombstone__t.html">tombstone_t</a> {</div>
|
|
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"><a class="line" href="structentt_1_1tombstone__t.html#a7ac55427538dd1b5e39ec064a4ffdd14"> 287</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">operator</span> Entity() const noexcept {</div>
|
|
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <span class="keyword">using </span>traits_type = <a class="code hl_struct" href="structentt_1_1entt__traits.html">entt_traits<Entity></a>;</div>
|
|
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> value = traits_type::construct(traits_type::entity_mask, traits_type::version_mask);</div>
|
|
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keywordflow">return</span> value;</div>
|
|
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> }</div>
|
|
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> </div>
|
|
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"><a class="line" href="structentt_1_1tombstone__t.html#af95e989594791f7eb458b22269b0a3b5"> 298</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structentt_1_1tombstone__t.html#af95e989594791f7eb458b22269b0a3b5">operator==</a>([[maybe_unused]] <span class="keyword">const</span> <a class="code hl_struct" href="structentt_1_1tombstone__t.html">tombstone_t</a> other) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> }</div>
|
|
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> </div>
|
|
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"><a class="line" href="structentt_1_1tombstone__t.html#ac4d838cb66da20f90041cf6e57775512"> 307</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structentt_1_1tombstone__t.html#ac4d838cb66da20f90041cf6e57775512">operator!=</a>([[maybe_unused]] <span class="keyword">const</span> <a class="code hl_struct" href="structentt_1_1tombstone__t.html">tombstone_t</a> other) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> }</div>
|
|
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> </div>
|
|
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"><a class="line" href="structentt_1_1tombstone__t.html#a872e744dc422954ddcdfbbb191d8ec34"> 318</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structentt_1_1tombstone__t.html#a872e744dc422954ddcdfbbb191d8ec34">operator==</a>(<span class="keyword">const</span> Entity <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> <span class="keyword">using </span>traits_type = <a class="code hl_struct" href="structentt_1_1entt__traits.html">entt_traits<Entity></a>;</div>
|
|
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> <span class="keywordflow">return</span> traits_type::to_version(<a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>) == traits_type::to_version(*<span class="keyword">this</span>);</div>
|
|
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> }</div>
|
|
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> </div>
|
|
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"><a class="line" href="structentt_1_1tombstone__t.html#ac66ba66ee149c57866a9a97ac1188eba"> 330</a></span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structentt_1_1tombstone__t.html#ac66ba66ee149c57866a9a97ac1188eba">operator!=</a>(<span class="keyword">const</span> Entity <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <span class="keywordflow">return</span> !(<a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a> == *<span class="keyword">this</span>);</div>
|
|
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> }</div>
|
|
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span>};</div>
|
|
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> </div>
|
|
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span><span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"><a class="line" href="namespaceentt.html#a067be6e3c78e4d6da28edce305773a0e"> 343</a></span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">operator==</a>(<span class="keyword">const</span> Entity <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>, <span class="keyword">const</span> <a class="code hl_struct" href="structentt_1_1tombstone__t.html">tombstone_t</a> other) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <span class="keywordflow">return</span> other.operator==(<a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>);</div>
|
|
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span>}</div>
|
|
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> </div>
|
|
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span><span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"><a class="line" href="namespaceentt.html#a00032301649c088b76e496ba0d984ab0"> 355</a></span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">operator!=</a>(<span class="keyword">const</span> Entity <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>, <span class="keyword">const</span> <a class="code hl_struct" href="structentt_1_1tombstone__t.html">tombstone_t</a> other) <span class="keyword">noexcept</span> {</div>
|
|
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> <span class="keywordflow">return</span> !(other == <a class="code hl_enumeration" href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entity</a>);</div>
|
|
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span>}</div>
|
|
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> </div>
|
|
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"><a class="line" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b"> 366</a></span><span class="keyword">inline</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structentt_1_1null__t.html">null_t</a> <a class="code hl_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>{};</div>
|
|
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> </div>
|
|
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"><a class="line" href="namespaceentt.html#a674269102fdfe3fd6d7766210a828862"> 375</a></span><span class="keyword">inline</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structentt_1_1tombstone__t.html">tombstone_t</a> <a class="code hl_variable" href="namespaceentt.html#a674269102fdfe3fd6d7766210a828862">tombstone</a>{};</div>
|
|
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> </div>
|
|
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span>} <span class="comment">// namespace entt</span></div>
|
|
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> </div>
|
|
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html">entt::basic_entt_traits</a></div><div class="ttdoc">Common basic entity traits implementation.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00074">entity.hpp:74</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_a066f3db5d13496df1e1fbc8659197793"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#a066f3db5d13496df1e1fbc8659197793">entt::basic_entt_traits::entity_type</a></div><div class="ttdeci">typename Traits::entity_type entity_type</div><div class="ttdoc">Underlying entity type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00084">entity.hpp:84</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_a0bd49c229b049ac5dc0fb21195b4bcc3"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#a0bd49c229b049ac5dc0fb21195b4bcc3">entt::basic_entt_traits::version_mask</a></div><div class="ttdeci">static constexpr entity_type version_mask</div><div class="ttdoc">Version mask size.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00091">entity.hpp:91</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_a3d3c3e8fd538fb4394ea505dd0415ec5"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#a3d3c3e8fd538fb4394ea505dd0415ec5">entt::basic_entt_traits::construct</a></div><div class="ttdeci">static constexpr value_type construct(const entity_type entity, const version_type version) noexcept</div><div class="ttdoc">Constructs an identifier from its parts.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00140">entity.hpp:140</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_a42a94cfb5923165804979505731ad7c6"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#a42a94cfb5923165804979505731ad7c6">entt::basic_entt_traits::next</a></div><div class="ttdeci">static constexpr value_type next(const value_type value) noexcept</div><div class="ttdoc">Returns the successor of a given identifier.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00125">entity.hpp:125</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_a4eb435084cf47d4fbc840654f2e8c9e0"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#a4eb435084cf47d4fbc840654f2e8c9e0">entt::basic_entt_traits::to_integral</a></div><div class="ttdeci">static constexpr entity_type to_integral(const value_type value) noexcept</div><div class="ttdoc">Converts an entity to its underlying type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00098">entity.hpp:98</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_a6b93920c3b3347171c485fdbdead14ec"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#a6b93920c3b3347171c485fdbdead14ec">entt::basic_entt_traits::entity_mask</a></div><div class="ttdeci">static constexpr entity_type entity_mask</div><div class="ttdoc">Entity mask size.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00089">entity.hpp:89</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_a8c02bc8db33817ec509b7d32773fa463"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#a8c02bc8db33817ec509b7d32773fa463">entt::basic_entt_traits::to_entity</a></div><div class="ttdeci">static constexpr entity_type to_entity(const value_type value) noexcept</div><div class="ttdoc">Returns the entity part once converted to the underlying type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00107">entity.hpp:107</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_a8d3ccdc302fc7dc567541fa12eca6b4e"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#a8d3ccdc302fc7dc567541fa12eca6b4e">entt::basic_entt_traits::value_type</a></div><div class="ttdeci">typename Traits::value_type value_type</div><div class="ttdoc">Value type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00082">entity.hpp:82</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_aa3fe33d19b228d07c5560b907f910c10"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#aa3fe33d19b228d07c5560b907f910c10">entt::basic_entt_traits::version_type</a></div><div class="ttdeci">typename Traits::version_type version_type</div><div class="ttdoc">Underlying version type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00086">entity.hpp:86</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_ad00358aea03a19c59efae2f8c005ae9b"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#ad00358aea03a19c59efae2f8c005ae9b">entt::basic_entt_traits::combine</a></div><div class="ttdeci">static constexpr value_type combine(const entity_type lhs, const entity_type rhs) noexcept</div><div class="ttdoc">Combines two identifiers in a single one.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00154">entity.hpp:154</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1basic__entt__traits_html_af1e3c418f09660a761fab21078df6700"><div class="ttname"><a href="classentt_1_1basic__entt__traits.html#af1e3c418f09660a761fab21078df6700">entt::basic_entt_traits::to_version</a></div><div class="ttdeci">static constexpr version_type to_version(const value_type value) noexcept</div><div class="ttdoc">Returns the version part once converted to the underlying type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00116">entity.hpp:116</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html"><div class="ttname"><a href="namespaceentt.html">entt</a></div><div class="ttdoc">EnTT default namespace.</div><div class="ttdef"><b>Definition:</b> <a href="dense__map_8hpp_source.html#l00021">dense_map.hpp:21</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a0b54e231d069e8a231e14b223388808a"><div class="ttname"><a href="namespaceentt.html#a0b54e231d069e8a231e14b223388808a">entt::entity</a></div><div class="ttdeci">entity</div><div class="ttdoc">Default entity identifier.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2fwd_8hpp_source.html#l00013">fwd.hpp:13</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a1202b4027d32db124efffdf1f2f8c5a2"><div class="ttname"><a href="namespaceentt.html#a1202b4027d32db124efffdf1f2f8c5a2">entt::to_entity</a></div><div class="ttdeci">constexpr entt_traits< Entity >::entity_type to_entity(const Entity value) noexcept</div><div class="ttdoc">Returns the entity part once converted to the underlying type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00186">entity.hpp:186</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a2f0c0a1c1d953ea991591748744cdd8b"><div class="ttname"><a href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">entt::null</a></div><div class="ttdeci">constexpr null_t null</div><div class="ttdoc">Compile-time constant for null entities.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00366">entity.hpp:366</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a4b7d8995ec3448ce5151309ef2281d33"><div class="ttname"><a href="namespaceentt.html#a4b7d8995ec3448ce5151309ef2281d33">entt::to_version</a></div><div class="ttdeci">constexpr entt_traits< Entity >::version_type to_version(const Entity value) noexcept</div><div class="ttdoc">Returns the version part once converted to the underlying type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00195">entity.hpp:195</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a674269102fdfe3fd6d7766210a828862"><div class="ttname"><a href="namespaceentt.html#a674269102fdfe3fd6d7766210a828862">entt::tombstone</a></div><div class="ttdeci">constexpr tombstone_t tombstone</div><div class="ttdoc">Compile-time constant for tombstone entities.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00375">entity.hpp:375</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_ad2e252dbd8c8ebd486a3d84fbf8c2602"><div class="ttname"><a href="namespaceentt.html#ad2e252dbd8c8ebd486a3d84fbf8c2602">entt::to_integral</a></div><div class="ttdeci">constexpr entt_traits< Entity >::entity_type to_integral(const Entity value) noexcept</div><div class="ttdoc">Converts an entity to its underlying type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00177">entity.hpp:177</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_ad9accc71a383509ada028f7fa2b767bf"><div class="ttname"><a href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">entt::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00249">hashed_string.hpp:249</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_af7c61951b721a1e3612cf536bd707501"><div class="ttname"><a href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">entt::operator==</a></div><div class="ttdeci">constexpr bool operator==(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00237">hashed_string.hpp:237</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1entt__traits_html"><div class="ttname"><a href="structentt_1_1entt__traits.html">entt::entt_traits</a></div><div class="ttdoc">Entity traits.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00165">entity.hpp:165</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1entt__traits_html_a187c362626da03111928aff88f43bb83"><div class="ttname"><a href="structentt_1_1entt__traits.html#a187c362626da03111928aff88f43bb83">entt::entt_traits::page_size</a></div><div class="ttdeci">static constexpr std::size_t page_size</div><div class="ttdoc">Page size, default is ENTT_SPARSE_PAGE.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00169">entity.hpp:169</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1null__t_html"><div class="ttname"><a href="structentt_1_1null__t.html">entt::null_t</a></div><div class="ttdoc">Null object for all identifiers.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00200">entity.hpp:200</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1null__t_html_a1b143232fe50fc52fee376f4f8e23a76"><div class="ttname"><a href="structentt_1_1null__t.html#a1b143232fe50fc52fee376f4f8e23a76">entt::null_t::operator==</a></div><div class="ttdeci">constexpr bool operator==(const Entity entity) const noexcept</div><div class="ttdoc">Compares a null object and an identifier of any type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00238">entity.hpp:238</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1null__t_html_a2c8a4bdade66b7f7520d10b4bb4fc858"><div class="ttname"><a href="structentt_1_1null__t.html#a2c8a4bdade66b7f7520d10b4bb4fc858">entt::null_t::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const Entity entity) const noexcept</div><div class="ttdoc">Compares a null object and an identifier of any type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00250">entity.hpp:250</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1null__t_html_a6736a78ac5ffa158b229fdf4fefcdc34"><div class="ttname"><a href="structentt_1_1null__t.html#a6736a78ac5ffa158b229fdf4fefcdc34">entt::null_t::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const null_t other) const noexcept</div><div class="ttdoc">Compares two null objects.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00227">entity.hpp:227</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1null__t_html_aed9c63b072bec4c7c6c15dc110620a93"><div class="ttname"><a href="structentt_1_1null__t.html#aed9c63b072bec4c7c6c15dc110620a93">entt::null_t::operator==</a></div><div class="ttdeci">constexpr bool operator==(const null_t other) const noexcept</div><div class="ttdoc">Compares two null objects.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00218">entity.hpp:218</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1tombstone__t_html"><div class="ttname"><a href="structentt_1_1tombstone__t.html">entt::tombstone_t</a></div><div class="ttdoc">Tombstone object for all identifiers.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00280">entity.hpp:280</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1tombstone__t_html_a872e744dc422954ddcdfbbb191d8ec34"><div class="ttname"><a href="structentt_1_1tombstone__t.html#a872e744dc422954ddcdfbbb191d8ec34">entt::tombstone_t::operator==</a></div><div class="ttdeci">constexpr bool operator==(const Entity entity) const noexcept</div><div class="ttdoc">Compares a tombstone object and an identifier of any type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00318">entity.hpp:318</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1tombstone__t_html_ac4d838cb66da20f90041cf6e57775512"><div class="ttname"><a href="structentt_1_1tombstone__t.html#ac4d838cb66da20f90041cf6e57775512">entt::tombstone_t::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const tombstone_t other) const noexcept</div><div class="ttdoc">Compares two tombstone objects.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00307">entity.hpp:307</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1tombstone__t_html_ac66ba66ee149c57866a9a97ac1188eba"><div class="ttname"><a href="structentt_1_1tombstone__t.html#ac66ba66ee149c57866a9a97ac1188eba">entt::tombstone_t::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const Entity entity) const noexcept</div><div class="ttdoc">Compares a tombstone object and an identifier of any type.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00330">entity.hpp:330</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1tombstone__t_html_af95e989594791f7eb458b22269b0a3b5"><div class="ttname"><a href="structentt_1_1tombstone__t.html#af95e989594791f7eb458b22269b0a3b5">entt::tombstone_t::operator==</a></div><div class="ttdeci">constexpr bool operator==(const tombstone_t other) const noexcept</div><div class="ttdoc">Compares two tombstone objects.</div><div class="ttdef"><b>Definition:</b> <a href="entity_8hpp_source.html#l00298">entity.hpp:298</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
|
|
</small></address>
|
|
</body>
|
|
</html>
|