Files
entt/helper_8hpp_source.html
2021-12-21 13:20:51 +01:00

195 lines
32 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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EnTT: src/entt/entity/helper.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.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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">EnTT
&#160;<span id="projectnumber">3.9.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</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">helper.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef ENTT_ENTITY_HELPER_HPP</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define ENTT_ENTITY_HELPER_HPP</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &quot;../config/config.h&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &quot;../core/fwd.hpp&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &quot;../core/type_traits.hpp&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &quot;../signal/delegate.hpp&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;fwd.hpp&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &quot;registry.hpp&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceentt.html">entt</a> {</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Entity&gt;</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html"> 19</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structentt_1_1as__view.html">as_view</a> {</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html#ae9599a1614990478c3331fbf562f36c7"> 21</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structentt_1_1as__view.html#ae9599a1614990478c3331fbf562f36c7">entity_type</a> = std::remove_const_t&lt;Entity&gt;;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html#acf6e812f1ff9a8a0a0af828b6597dace"> 23</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structentt_1_1as__view.html#acf6e812f1ff9a8a0a0af828b6597dace">registry_type</a> = <a class="code" href="namespaceentt.html#a7b051461867d3c5c97f77f10b662c26b">constness_as_t&lt;basic_registry&lt;entity_type&gt;</a>, Entity&gt;;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html#a4298bb90698199b99820bce07d866ac7"> 29</a></span>&#160; <a class="code" href="structentt_1_1as__view.html#a4298bb90698199b99820bce07d866ac7">as_view</a>(<a class="code" href="structentt_1_1as__view.html#acf6e812f1ff9a8a0a0af828b6597dace">registry_type</a> &amp;source) ENTT_NOEXCEPT: reg{source} {}</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Exclude, <span class="keyword">typename</span>... Component&gt;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html#a33df5ef10293a3153cd467edd72be425"> 38</a></span>&#160; <span class="keyword">operator</span> <a class="code" href="classentt_1_1basic__view.html">basic_view</a>&lt;<a class="code" href="structentt_1_1as__view.html#ae9599a1614990478c3331fbf562f36c7">entity_type</a>, <a class="code" href="structentt_1_1get__t.html">get_t</a>&lt;Component...&gt;, Exclude&gt;() <span class="keyword">const</span> {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordflow">return</span> reg.template <a class="code" href="classentt_1_1basic__view.html">view</a>&lt;Component...&gt;(Exclude{});</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; }</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <a class="code" href="structentt_1_1as__view.html#acf6e812f1ff9a8a0a0af828b6597dace">registry_type</a> &amp;reg;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;};</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Entity&gt;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="namespaceentt.html#af0922fd2ea330d84a2e1b6f19e877aed"> 51</a></span>&#160;<a class="code" href="namespaceentt.html#af0922fd2ea330d84a2e1b6f19e877aed">as_view</a>(<a class="code" href="classentt_1_1basic__registry.html">basic_registry&lt;Entity&gt;</a> &amp;) -&gt; <a class="code" href="structentt_1_1as__view.html">as_view&lt;Entity&gt;</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Entity&gt;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="namespaceentt.html#a4821869aa545da11205c90388fa2d08e"> 58</a></span>&#160;<a class="code" href="namespaceentt.html#af0922fd2ea330d84a2e1b6f19e877aed">as_view</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__registry.html">basic_registry&lt;Entity&gt;</a> &amp;) -&gt; <a class="code" href="structentt_1_1as__view.html">as_view&lt;const Entity&gt;</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Entity&gt;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html"> 65</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structentt_1_1as__group.html">as_group</a> {</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html#ab9e7aee21b99a979368535a5d5054137"> 67</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structentt_1_1as__group.html#ab9e7aee21b99a979368535a5d5054137">entity_type</a> = std::remove_const_t&lt;Entity&gt;;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html#a6aa30140ac29c50156197aad66b54ccb"> 69</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structentt_1_1as__group.html#a6aa30140ac29c50156197aad66b54ccb">registry_type</a> = <a class="code" href="namespaceentt.html#a7b051461867d3c5c97f77f10b662c26b">constness_as_t&lt;basic_registry&lt;entity_type&gt;</a>, Entity&gt;;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html#a1e820abe8d20a6a64487b31bc5a2f879"> 75</a></span>&#160; <a class="code" href="structentt_1_1as__group.html#a1e820abe8d20a6a64487b31bc5a2f879">as_group</a>(<a class="code" href="structentt_1_1as__group.html#a6aa30140ac29c50156197aad66b54ccb">registry_type</a> &amp;source) ENTT_NOEXCEPT: reg{source} {}</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Get, <span class="keyword">typename</span> Exclude, <span class="keyword">typename</span>... Owned&gt;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html#a35cbba4f387f92c80935183da08798ca"> 85</a></span>&#160; <span class="keyword">operator</span> <a class="code" href="classentt_1_1basic__group.html">basic_group</a>&lt;<a class="code" href="structentt_1_1as__group.html#ab9e7aee21b99a979368535a5d5054137">entity_type</a>, <a class="code" href="structentt_1_1owned__t.html">owned_t</a>&lt;Owned...&gt;, Get, Exclude&gt;() <span class="keyword">const</span> {</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">if</span> constexpr(std::is_const_v&lt;registry_type&gt;) {</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordflow">return</span> reg.template group_if_exists&lt;Owned...&gt;(Get{}, Exclude{});</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">return</span> reg.template <a class="code" href="classentt_1_1basic__group.html">group</a>&lt;Owned...&gt;(Get{}, Exclude{});</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; }</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="structentt_1_1as__group.html#a6aa30140ac29c50156197aad66b54ccb">registry_type</a> &amp;reg;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;};</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Entity&gt;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="namespaceentt.html#a4dcc1231f76478c7aa6f6ec9516cf045"> 102</a></span>&#160;<a class="code" href="namespaceentt.html#a4dcc1231f76478c7aa6f6ec9516cf045">as_group</a>(<a class="code" href="classentt_1_1basic__registry.html">basic_registry&lt;Entity&gt;</a> &amp;) -&gt; <a class="code" href="structentt_1_1as__group.html">as_group&lt;Entity&gt;</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Entity&gt;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="namespaceentt.html#ad6e62063b33b410e0a4bf1acc5b59596"> 109</a></span>&#160;<a class="code" href="namespaceentt.html#a4dcc1231f76478c7aa6f6ec9516cf045">as_group</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__registry.html">basic_registry&lt;Entity&gt;</a> &amp;) -&gt; <a class="code" href="structentt_1_1as__group.html">as_group&lt;const Entity&gt;</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="keyword">template</span>&lt;auto Member, <span class="keyword">typename</span> Entity = entity&gt;</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="namespaceentt.html#aa512a354fe328df6be5a92eb43cd4d69"> 119</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceentt.html#aa512a354fe328df6be5a92eb43cd4d69">invoke</a>(<a class="code" href="classentt_1_1basic__registry.html">basic_registry&lt;Entity&gt;</a> &amp;reg, <span class="keyword">const</span> Entity <a class="code" href="namespaceentt.html">entt</a>) {</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; static_assert(std::is_member_function_pointer_v&lt;decltype(Member)&gt;, <span class="stringliteral">&quot;Invalid pointer to non-static member function&quot;</span>);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <a class="code" href="classentt_1_1delegate.html">delegate</a>&lt;void(<a class="code" href="classentt_1_1basic__registry.html">basic_registry&lt;Entity&gt;</a> &amp;, <span class="keyword">const</span> Entity)&gt; func;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; func.template connect&lt;Member&gt;(reg.template <a class="code" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>&lt;<a class="code" href="namespaceentt.html#a49f19d031690e5ebfffd6c7a4f6bd364">member_class_t</a>&lt;decltype(Member)&gt;&gt;(<a class="code" href="namespaceentt.html">entt</a>));</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; func(reg, <a class="code" href="namespaceentt.html">entt</a>);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;}</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Entity, <span class="keyword">typename</span> Component&gt;</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="namespaceentt.html#ae81b68364d770429f343d703f415d12a"> 140</a></span>&#160;Entity <a class="code" href="namespaceentt.html#ae1b0b05750caf25f9718c2bebf55d25c">to_entity</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__registry.html">basic_registry&lt;Entity&gt;</a> &amp;reg, <span class="keyword">const</span> Component &amp;instance) {</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">const</span> <span class="keyword">auto</span> &amp;<a class="code" href="classentt_1_1basic__storage.html">storage</a> = reg.template <a class="code" href="classentt_1_1basic__storage.html">storage&lt;Component&gt;</a>();</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classentt_1_1basic__sparse__set.html">basic_registry&lt;Entity&gt;::base_type</a> &amp;base = <a class="code" href="namespaceentt.html#abcedb8f29753130e2bf3185bca211f05">storage</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">const</span> <span class="keyword">auto</span> *addr = std::addressof(instance);</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> it = base.<a class="code" href="classentt_1_1basic__sparse__set.html#aeb97353b34992345fde1fe763885ef41">rbegin</a>(), last = base.<a class="code" href="classentt_1_1basic__sparse__set.html#a1bc1fee7c920941ac936ed7df9207343">rend</a>(); it &lt; last; it += ENTT_PACKED_PAGE) {</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordflow">if</span>(<span class="keyword">const</span> <span class="keyword">auto</span> dist = (addr - std::addressof(<a class="code" href="classentt_1_1basic__storage.html">storage</a>.<a class="code" href="classentt_1_1basic__storage.html#afdb98de467567bf81772382ba2970413">get</a>(*it))); dist &gt;= 0 &amp;&amp; dist &lt; ENTT_PACKED_PAGE) {</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">return</span> *(it + dist);</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; }</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; }</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordflow">return</span> <span class="keyword">null</span>;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;}</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;} <span class="comment">// namespace entt</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassentt_1_1basic__group_html"><div class="ttname"><a href="classentt_1_1basic__group.html">entt::basic_group</a></div><div class="ttdoc">Group.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2fwd_8hpp_source.html#l00026">fwd.hpp:26</a></div></div>
<div class="ttc" id="aclassentt_1_1basic__registry_html"><div class="ttname"><a href="classentt_1_1basic__registry.html">entt::basic_registry</a></div><div class="ttdoc">Fast and reliable entity-component system.</div><div class="ttdef"><b>Definition:</b> <a href="registry_8hpp_source.html#l00173">registry.hpp:173</a></div></div>
<div class="ttc" id="aclassentt_1_1basic__sparse__set_html"><div class="ttname"><a href="classentt_1_1basic__sparse__set.html">entt::basic_sparse_set</a></div><div class="ttdoc">Basic sparse set implementation.</div><div class="ttdef"><b>Definition:</b> <a href="sparse__set_8hpp_source.html#l00174">sparse_set.hpp:174</a></div></div>
<div class="ttc" id="aclassentt_1_1basic__sparse__set_html_a1bc1fee7c920941ac936ed7df9207343"><div class="ttname"><a href="classentt_1_1basic__sparse__set.html#a1bc1fee7c920941ac936ed7df9207343">entt::basic_sparse_set::rend</a></div><div class="ttdeci">reverse_iterator rend() const</div><div class="ttdoc">Returns a reverse iterator to the end.</div><div class="ttdef"><b>Definition:</b> <a href="sparse__set_8hpp_source.html#l00558">sparse_set.hpp:558</a></div></div>
<div class="ttc" id="aclassentt_1_1basic__sparse__set_html_aeb97353b34992345fde1fe763885ef41"><div class="ttname"><a href="classentt_1_1basic__sparse__set.html#aeb97353b34992345fde1fe763885ef41">entt::basic_sparse_set::rbegin</a></div><div class="ttdeci">const_reverse_iterator rbegin() const</div><div class="ttdoc">Returns a reverse iterator to the beginning.</div><div class="ttdef"><b>Definition:</b> <a href="sparse__set_8hpp_source.html#l00539">sparse_set.hpp:539</a></div></div>
<div class="ttc" id="aclassentt_1_1basic__storage_html"><div class="ttname"><a href="classentt_1_1basic__storage.html">entt::basic_storage</a></div><div class="ttdoc">Basic storage implementation.</div><div class="ttdef"><b>Definition:</b> <a href="storage_8hpp_source.html#l00237">storage.hpp:237</a></div></div>
<div class="ttc" id="aclassentt_1_1basic__storage_html_afdb98de467567bf81772382ba2970413"><div class="ttname"><a href="classentt_1_1basic__storage.html#afdb98de467567bf81772382ba2970413">entt::basic_storage::get</a></div><div class="ttdeci">const value_type &amp; get(const entity_type entt) const</div><div class="ttdoc">Returns the object assigned to an entity.</div><div class="ttdef"><b>Definition:</b> <a href="storage_8hpp_source.html#l00651">storage.hpp:651</a></div></div>
<div class="ttc" id="aclassentt_1_1basic__view_html"><div class="ttname"><a href="classentt_1_1basic__view.html">entt::basic_view</a></div><div class="ttdoc">View implementation.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2fwd_8hpp_source.html#l00020">fwd.hpp:20</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_html"><div class="ttname"><a href="classentt_1_1delegate.html">entt::delegate</a></div><div class="ttdoc">Basic delegate implementation.</div><div class="ttdef"><b>Definition:</b> <a href="delegate_8hpp_source.html#l00066">delegate.hpp:66</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__hash__map_8hpp_source.html#l00021">dense_hash_map.hpp:21</a></div></div>
<div class="ttc" id="anamespaceentt_html_a49f19d031690e5ebfffd6c7a4f6bd364"><div class="ttname"><a href="namespaceentt.html#a49f19d031690e5ebfffd6c7a4f6bd364">entt::member_class_t</a></div><div class="ttdeci">typename member_class&lt; Member &gt;::type member_class_t</div><div class="ttdoc">Helper type.</div><div class="ttdef"><b>Definition:</b> <a href="core_2type__traits_8hpp_source.html#l00674">type_traits.hpp:674</a></div></div>
<div class="ttc" id="anamespaceentt_html_a4dcc1231f76478c7aa6f6ec9516cf045"><div class="ttname"><a href="namespaceentt.html#a4dcc1231f76478c7aa6f6ec9516cf045">entt::as_group</a></div><div class="ttdeci">as_group(basic_registry&lt; Entity &gt; &amp;) -&gt; as_group&lt; Entity &gt;</div><div class="ttdoc">Deduction guide.</div></div>
<div class="ttc" id="anamespaceentt_html_a7b051461867d3c5c97f77f10b662c26b"><div class="ttname"><a href="namespaceentt.html#a7b051461867d3c5c97f77f10b662c26b">entt::constness_as_t</a></div><div class="ttdeci">typename constness_as&lt; To, From &gt;::type constness_as_t</div><div class="ttdoc">Alias template to facilitate the transcription of the constness.</div><div class="ttdef"><b>Definition:</b> <a href="core_2type__traits_8hpp_source.html#l00645">type_traits.hpp:645</a></div></div>
<div class="ttc" id="anamespaceentt_html_a8c24ecc5ab0055f9f2a4725c95afb29e"><div class="ttname"><a href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">entt::get</a></div><div class="ttdeci">constexpr get_t&lt; Type... &gt; get</div><div class="ttdoc">Variable template for lists of observed components.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2utility_8hpp_source.html#l00034">utility.hpp:34</a></div></div>
<div class="ttc" id="anamespaceentt_html_aa512a354fe328df6be5a92eb43cd4d69"><div class="ttname"><a href="namespaceentt.html#aa512a354fe328df6be5a92eb43cd4d69">entt::invoke</a></div><div class="ttdeci">void invoke(basic_registry&lt; Entity &gt; &amp;reg, const Entity entt)</div><div class="ttdoc">Helper to create a listener that directly invokes a member function.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00119">helper.hpp:119</a></div></div>
<div class="ttc" id="anamespaceentt_html_abcedb8f29753130e2bf3185bca211f05"><div class="ttname"><a href="namespaceentt.html#abcedb8f29753130e2bf3185bca211f05">entt::storage</a></div><div class="ttdeci">basic_storage&lt; entity, Args... &gt; storage</div><div class="ttdoc">Alias declaration for the most common use case.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2fwd_8hpp_source.html#l00057">fwd.hpp:57</a></div></div>
<div class="ttc" id="anamespaceentt_html_ae1b0b05750caf25f9718c2bebf55d25c"><div class="ttname"><a href="namespaceentt.html#ae1b0b05750caf25f9718c2bebf55d25c">entt::to_entity</a></div><div class="ttdeci">constexpr entt_traits&lt; Entity &gt;::entity_type to_entity(const Entity value)</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#l00148">entity.hpp:148</a></div></div>
<div class="ttc" id="anamespaceentt_html_af0922fd2ea330d84a2e1b6f19e877aed"><div class="ttname"><a href="namespaceentt.html#af0922fd2ea330d84a2e1b6f19e877aed">entt::as_view</a></div><div class="ttdeci">as_view(basic_registry&lt; Entity &gt; &amp;) -&gt; as_view&lt; Entity &gt;</div><div class="ttdoc">Deduction guide.</div></div>
<div class="ttc" id="astructentt_1_1as__group_html"><div class="ttname"><a href="structentt_1_1as__group.html">entt::as_group</a></div><div class="ttdoc">Converts a registry to a group.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00065">helper.hpp:65</a></div></div>
<div class="ttc" id="astructentt_1_1as__group_html_a1e820abe8d20a6a64487b31bc5a2f879"><div class="ttname"><a href="structentt_1_1as__group.html#a1e820abe8d20a6a64487b31bc5a2f879">entt::as_group::as_group</a></div><div class="ttdeci">as_group(registry_type &amp;source)</div><div class="ttdoc">Constructs a converter for a given registry.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00075">helper.hpp:75</a></div></div>
<div class="ttc" id="astructentt_1_1as__group_html_a6aa30140ac29c50156197aad66b54ccb"><div class="ttname"><a href="structentt_1_1as__group.html#a6aa30140ac29c50156197aad66b54ccb">entt::as_group::registry_type</a></div><div class="ttdeci">constness_as_t&lt; basic_registry&lt; entity_type &gt;, Entity &gt; registry_type</div><div class="ttdoc">Type of registry to convert.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00069">helper.hpp:69</a></div></div>
<div class="ttc" id="astructentt_1_1as__group_html_ab9e7aee21b99a979368535a5d5054137"><div class="ttname"><a href="structentt_1_1as__group.html#ab9e7aee21b99a979368535a5d5054137">entt::as_group::entity_type</a></div><div class="ttdeci">std::remove_const_t&lt; Entity &gt; entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00067">helper.hpp:67</a></div></div>
<div class="ttc" id="astructentt_1_1as__view_html"><div class="ttname"><a href="structentt_1_1as__view.html">entt::as_view</a></div><div class="ttdoc">Converts a registry to a view.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00019">helper.hpp:19</a></div></div>
<div class="ttc" id="astructentt_1_1as__view_html_a4298bb90698199b99820bce07d866ac7"><div class="ttname"><a href="structentt_1_1as__view.html#a4298bb90698199b99820bce07d866ac7">entt::as_view::as_view</a></div><div class="ttdeci">as_view(registry_type &amp;source)</div><div class="ttdoc">Constructs a converter for a given registry.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00029">helper.hpp:29</a></div></div>
<div class="ttc" id="astructentt_1_1as__view_html_acf6e812f1ff9a8a0a0af828b6597dace"><div class="ttname"><a href="structentt_1_1as__view.html#acf6e812f1ff9a8a0a0af828b6597dace">entt::as_view::registry_type</a></div><div class="ttdeci">constness_as_t&lt; basic_registry&lt; entity_type &gt;, Entity &gt; registry_type</div><div class="ttdoc">Type of registry to convert.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00023">helper.hpp:23</a></div></div>
<div class="ttc" id="astructentt_1_1as__view_html_ae9599a1614990478c3331fbf562f36c7"><div class="ttname"><a href="structentt_1_1as__view.html#ae9599a1614990478c3331fbf562f36c7">entt::as_view::entity_type</a></div><div class="ttdeci">std::remove_const_t&lt; Entity &gt; entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00021">helper.hpp:21</a></div></div>
<div class="ttc" id="astructentt_1_1get__t_html"><div class="ttname"><a href="structentt_1_1get__t.html">entt::get_t</a></div><div class="ttdoc">Alias for lists of observed components.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2utility_8hpp_source.html#l00027">utility.hpp:27</a></div></div>
<div class="ttc" id="astructentt_1_1owned__t_html"><div class="ttname"><a href="structentt_1_1owned__t.html">entt::owned_t</a></div><div class="ttdoc">Alias for lists of owned components.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2utility_8hpp_source.html#l00041">utility.hpp:41</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>