Files
entt/helper_8hpp_source.html
2023-06-15 11:47:04 +02:00

271 lines
49 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/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-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">&#160;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&amp;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&amp;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">helper.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_HELPER_HPP</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ENTT_ENTITY_HELPER_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 &lt;memory&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &quot;../core/fwd.hpp&quot;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &quot;../core/type_traits.hpp&quot;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &quot;../signal/delegate.hpp&quot;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &quot;fwd.hpp&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include &quot;group.hpp&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &quot;view.hpp&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Registry&gt;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="classentt_1_1as__view.html"> 21</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1as__view.html">as_view</a> {</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Get, <span class="keyword">typename</span>... Exclude&gt;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">auto</span> dispatch(<a class="code hl_struct" href="structentt_1_1get__t.html">get_t&lt;Get...&gt;</a>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t&lt;Exclude...&gt;</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordflow">return</span> reg.template <a class="code hl_class" href="classentt_1_1basic__view.html">view&lt;constness_as_t&lt;typename Get::value_type, Get&gt;</a>...&gt;(<a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t&lt;constness_as_t&lt;typename Exclude::value_type, Exclude&gt;</a>...&gt;{});</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> }</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="classentt_1_1as__view.html#acb61ac3405aeaef4fb051c8ebb5f0802"> 29</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1as__view.html#acb61ac3405aeaef4fb051c8ebb5f0802">registry_type</a> = Registry;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classentt_1_1as__view.html#a9ae57dc533e1c2e1279849c8101d07ed"> 31</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1as__view.html#a9ae57dc533e1c2e1279849c8101d07ed">entity_type</a> = <span class="keyword">typename</span> registry_type::entity_type;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="classentt_1_1as__view.html#a59df7f49ab88f62ca17fd7d92959d06c"> 37</a></span> <a class="code hl_function" href="classentt_1_1as__view.html#a59df7f49ab88f62ca17fd7d92959d06c">as_view</a>(<a class="code hl_typedef" href="classentt_1_1as__view.html#acb61ac3405aeaef4fb051c8ebb5f0802">registry_type</a> &amp;source) noexcept</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> : reg{source} {}</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Get, <span class="keyword">typename</span> Exclude&gt;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="classentt_1_1as__view.html#afd2048bc06e3758fa9fb811e7dd10c5f"> 47</a></span> <span class="keyword">operator</span> <a class="code hl_class" href="classentt_1_1basic__view.html">basic_view&lt;Get, Exclude&gt;</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keywordflow">return</span> dispatch(Get{}, Exclude{});</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">private</span>:</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_typedef" href="classentt_1_1as__view.html#acb61ac3405aeaef4fb051c8ebb5f0802">registry_type</a> &amp;reg;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span>};</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Registry&gt;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classentt_1_1as__group.html"> 60</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1as__group.html">as_group</a> {</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Owned, <span class="keyword">typename</span>... Get, <span class="keyword">typename</span>... Exclude&gt;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">auto</span> dispatch(<a class="code hl_struct" href="structentt_1_1owned__t.html">owned_t&lt;Owned...&gt;</a>, <a class="code hl_struct" href="structentt_1_1get__t.html">get_t&lt;Get...&gt;</a>, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t&lt;Exclude...&gt;</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_const_v&lt;registry_type&gt;) {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">return</span> reg.template group_if_exists&lt;<span class="keyword">typename</span> Owned::value_type...&gt;(<a class="code hl_struct" href="structentt_1_1get__t.html">get_t</a>&lt;<span class="keyword">typename</span> Get::value_type...&gt;{}, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t</a>&lt;<span class="keyword">typename</span> Exclude::value_type...&gt;{});</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> reg.template <a class="code hl_class" href="classentt_1_1basic__group.html">group&lt;constness_as_t&lt;typename Owned::value_type, Owned&gt;</a>...&gt;(<a class="code hl_struct" href="structentt_1_1get__t.html">get_t&lt;constness_as_t&lt;typename Get::value_type, Get&gt;</a>...&gt;{}, <a class="code hl_struct" href="structentt_1_1exclude__t.html">exclude_t&lt;constness_as_t&lt;typename Exclude::value_type, Exclude&gt;</a>...&gt;{});</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classentt_1_1as__group.html#a181c04aa4d53d5fef0f90b33e000f8d1"> 72</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1as__group.html#a181c04aa4d53d5fef0f90b33e000f8d1">registry_type</a> = Registry;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classentt_1_1as__group.html#a01a68f9e8552b14f9bc2e1a48c665c70"> 74</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1as__group.html#a01a68f9e8552b14f9bc2e1a48c665c70">entity_type</a> = <span class="keyword">typename</span> registry_type::entity_type;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classentt_1_1as__group.html#a2ec8b1a86b502a9649cd9db3f90680a0"> 80</a></span> <a class="code hl_function" href="classentt_1_1as__group.html#a2ec8b1a86b502a9649cd9db3f90680a0">as_group</a>(<a class="code hl_typedef" href="classentt_1_1as__group.html#a181c04aa4d53d5fef0f90b33e000f8d1">registry_type</a> &amp;source) noexcept</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> : reg{source} {}</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Owned, <span class="keyword">typename</span> Get, <span class="keyword">typename</span> Exclude&gt;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classentt_1_1as__group.html#ab252f9fcd1a370a52dd8abfd7f32cec8"> 91</a></span> <span class="keyword">operator</span> <a class="code hl_class" href="classentt_1_1basic__group.html">basic_group&lt;Owned, Get, Exclude&gt;</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">return</span> dispatch(Owned{}, Get{}, Exclude{});</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> }</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <a class="code hl_typedef" href="classentt_1_1as__group.html#a181c04aa4d53d5fef0f90b33e000f8d1">registry_type</a> &amp;reg;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span>};</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span><span class="keyword">template</span>&lt;auto Member, <span class="keyword">typename</span> Registry = std::decay_t&lt;nth_argument_t&lt;0u, Member&gt;&gt;&gt;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="namespaceentt.html#ac25eea8903b4a5d58408cc2e9ecb1a2e"> 107</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespaceentt.html#ac25eea8903b4a5d58408cc2e9ecb1a2e">invoke</a>(Registry &amp;reg, <span class="keyword">const</span> <span class="keyword">typename</span> Registry::entity_type <a class="code hl_namespace" href="namespaceentt.html">entt</a>) {</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">static_assert</span>(std::is_member_function_pointer_v&lt;<span class="keyword">decltype</span>(Member)&gt;, <span class="stringliteral">&quot;Invalid pointer to non-static member function&quot;</span>);</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;void(Registry &amp;, <span class="keyword">const</span> <span class="keyword">typename</span> Registry::entity_type)&gt; func;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> func.template connect&lt;Member&gt;(reg.template <a class="code hl_variable" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a>&lt;<a class="code hl_typedef" href="namespaceentt.html#a49f19d031690e5ebfffd6c7a4f6bd364">member_class_t</a>&lt;<span class="keyword">decltype</span>(Member)&gt;&gt;(<a class="code hl_namespace" href="namespaceentt.html">entt</a>));</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> func(reg, <a class="code hl_namespace" href="namespaceentt.html">entt</a>);</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span>}</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Registry, <span class="keyword">typename</span> Component&gt;</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="namespaceentt.html#adafe8aa84438fa3781ebd05fb93ddef4"> 128</a></span><span class="keyword">typename</span> Registry::entity_type <a class="code hl_function" href="namespaceentt.html#a1202b4027d32db124efffdf1f2f8c5a2">to_entity</a>(<span class="keyword">const</span> Registry &amp;reg, <span class="keyword">const</span> Component &amp;instance) {</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordflow">if</span>(<span class="keyword">const</span> <span class="keyword">auto</span> *<a class="code hl_class" href="classentt_1_1basic__storage.html">storage</a> = reg.template <a class="code hl_class" href="classentt_1_1basic__storage.html">storage&lt;Component&gt;</a>(); <a class="code hl_class" href="classentt_1_1basic__storage.html">storage</a>) {</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> page_size = std::remove_const_t&lt;std::remove_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_typedef" href="namespaceentt.html#a5c7ab17a0233eb285971b211e3128249">storage</a>)&gt;&gt;::traits_type::page_size;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">const</span> <span class="keyword">typename</span> Registry::common_type &amp;base = *<a class="code hl_typedef" href="namespaceentt.html#a5c7ab17a0233eb285971b211e3128249">storage</a>;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">const</span> <span class="keyword">auto</span> *addr = std::addressof(instance);</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> it = base.rbegin(), last = base.rend(); it &lt; last; it += page_size) {</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">if</span>(<span class="keyword">const</span> <span class="keyword">auto</span> dist = (addr - std::addressof(<a class="code hl_class" href="classentt_1_1basic__storage.html">storage</a>-&gt;<a class="code hl_function" href="classentt_1_1basic__storage.html#a3d5a1009a9e86a3bb051eaaf01864574">get</a>(*it))); dist &gt;= 0 &amp;&amp; dist &lt; <span class="keyword">static_cast&lt;</span>decltype(dist)<span class="keyword">&gt;</span>(page_size)) {</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keywordflow">return</span> *(it + dist);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> }</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> }</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> }</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</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_variable" href="namespaceentt.html#a2f0c0a1c1d953ea991591748744cdd8b">null</a>;</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="l00145" name="l00145"></a><span class="lineno"> 145</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span>...&gt;</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper.html"> 146</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1sigh__helper.html">sigh_helper</a>;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> </div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Registry&gt;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_01_4.html"> 153</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1sigh__helper.html">sigh_helper&lt;Registry&gt;</a> {</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a5dd4fa0484feea38dc6b464b98f2336a"> 155</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a5dd4fa0484feea38dc6b464b98f2336a">registry_type</a> = Registry;</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a4f25dc19d359844fead2611680294f93"> 161</a></span> <a class="code hl_function" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a4f25dc19d359844fead2611680294f93">sigh_helper</a>(<a class="code hl_typedef" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a5dd4fa0484feea38dc6b464b98f2336a">registry_type</a> &amp;ref)</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> : bucket{&amp;ref} {}</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a88c9f698912fac86d317762b2384aaf4"> 171</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a88c9f698912fac86d317762b2384aaf4">with</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespaceentt.html#a13e040e7b38a8f86d1ab2f096f37b627">id_type</a> <span class="keywordtype">id</span> = <a class="code hl_struct" href="structentt_1_1type__hash.html">type_hash&lt;Type&gt;::value</a>()) noexcept {</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structentt_1_1sigh__helper.html">sigh_helper&lt;registry_type, Type&gt;</a>{*bucket, <span class="keywordtype">id</span>};</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> }</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a798580968dc076c501f84f939ef1badc"> 179</a></span> [[nodiscard]] <a class="code hl_typedef" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a5dd4fa0484feea38dc6b464b98f2336a">registry_type</a> &amp;<a class="code hl_function" href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a798580968dc076c501f84f939ef1badc">registry</a>() noexcept {</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="keywordflow">return</span> *bucket;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> }</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> registry_type *bucket;</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span>};</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Registry, <span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html"> 193</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1sigh__helper.html">sigh_helper&lt;Registry, Type&gt;</a> <span class="keyword">final</span>: <a class="code hl_struct" href="structentt_1_1sigh__helper.html">sigh_helper&lt;Registry&gt;</a> {</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a2514fd73cb720dce8bde7d8ac2cf164d"> 195</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a2514fd73cb720dce8bde7d8ac2cf164d">registry_type</a> = Registry;</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#aef132e2d47c4c2b652f24fe8155736c3"> 202</a></span> <a class="code hl_function" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#aef132e2d47c4c2b652f24fe8155736c3">sigh_helper</a>(<a class="code hl_typedef" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a2514fd73cb720dce8bde7d8ac2cf164d">registry_type</a> &amp;ref, <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceentt.html#a13e040e7b38a8f86d1ab2f096f37b627">id_type</a> <span class="keywordtype">id</span> = <a class="code hl_struct" href="structentt_1_1type__hash.html">type_hash&lt;Type&gt;::value</a>())</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> : <a class="code hl_struct" href="structentt_1_1sigh__helper.html">sigh_helper</a>&lt;Registry&gt;{ref},</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> name{<span class="keywordtype">id</span>} {}</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> Candidate, <span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a1d77fc6d2924e419a9cc022231ad0e32"> 214</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a1d77fc6d2924e419a9cc022231ad0e32">on_construct</a>(Args &amp;&amp;...args) {</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> this-&gt;<a class="code hl_typedef" href="namespaceentt.html#ac52578c5714150de197f815c62899bce">registry</a>().template on_construct&lt;Type&gt;(name).template connect&lt;Candidate&gt;(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> }</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> Candidate, <span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#abbd7db28fd4c97ba98b25c22dff7c26f"> 227</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#abbd7db28fd4c97ba98b25c22dff7c26f">on_update</a>(Args &amp;&amp;...args) {</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> this-&gt;<a class="code hl_typedef" href="namespaceentt.html#ac52578c5714150de197f815c62899bce">registry</a>().template on_update&lt;Type&gt;(name).template connect&lt;Candidate&gt;(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> }</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> Candidate, <span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"><a class="line" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a0bf3fdfbe983ec6d9ce9fae4b0465ddf"> 240</a></span> <span class="keyword">auto</span> <a class="code hl_function" href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a0bf3fdfbe983ec6d9ce9fae4b0465ddf">on_destroy</a>(Args &amp;&amp;...args) {</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> this-&gt;<a class="code hl_typedef" href="namespaceentt.html#ac52578c5714150de197f815c62899bce">registry</a>().template on_destroy&lt;Type&gt;(name).template connect&lt;Candidate&gt;(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> }</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> </div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <a class="code hl_typedef" href="namespaceentt.html#a13e040e7b38a8f86d1ab2f096f37b627">id_type</a> name;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span>};</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> </div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Registry&gt;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"><a class="line" href="namespaceentt.html#ad0050077ac79b81ac00d1d3ab66b4f53"> 254</a></span><a class="code hl_struct" href="structentt_1_1sigh__helper.html">sigh_helper</a>(Registry &amp;) -&gt; <a class="code hl_struct" href="structentt_1_1sigh__helper.html">sigh_helper&lt;Registry&gt;</a>;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span>} <span class="comment">// namespace entt</span></div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassentt_1_1as__group_html"><div class="ttname"><a href="classentt_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#l00060">helper.hpp:60</a></div></div>
<div class="ttc" id="aclassentt_1_1as__group_html_a01a68f9e8552b14f9bc2e1a48c665c70"><div class="ttname"><a href="classentt_1_1as__group.html#a01a68f9e8552b14f9bc2e1a48c665c70">entt::as_group::entity_type</a></div><div class="ttdeci">typename registry_type::entity_type entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00074">helper.hpp:74</a></div></div>
<div class="ttc" id="aclassentt_1_1as__group_html_a181c04aa4d53d5fef0f90b33e000f8d1"><div class="ttname"><a href="classentt_1_1as__group.html#a181c04aa4d53d5fef0f90b33e000f8d1">entt::as_group::registry_type</a></div><div class="ttdeci">Registry registry_type</div><div class="ttdoc">Type of registry to convert.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00072">helper.hpp:72</a></div></div>
<div class="ttc" id="aclassentt_1_1as__group_html_a2ec8b1a86b502a9649cd9db3f90680a0"><div class="ttname"><a href="classentt_1_1as__group.html#a2ec8b1a86b502a9649cd9db3f90680a0">entt::as_group::as_group</a></div><div class="ttdeci">as_group(registry_type &amp;source) noexcept</div><div class="ttdoc">Constructs a converter for a given registry.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00080">helper.hpp:80</a></div></div>
<div class="ttc" id="aclassentt_1_1as__view_html"><div class="ttname"><a href="classentt_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#l00021">helper.hpp:21</a></div></div>
<div class="ttc" id="aclassentt_1_1as__view_html_a59df7f49ab88f62ca17fd7d92959d06c"><div class="ttname"><a href="classentt_1_1as__view.html#a59df7f49ab88f62ca17fd7d92959d06c">entt::as_view::as_view</a></div><div class="ttdeci">as_view(registry_type &amp;source) noexcept</div><div class="ttdoc">Constructs a converter for a given registry.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00037">helper.hpp:37</a></div></div>
<div class="ttc" id="aclassentt_1_1as__view_html_a9ae57dc533e1c2e1279849c8101d07ed"><div class="ttname"><a href="classentt_1_1as__view.html#a9ae57dc533e1c2e1279849c8101d07ed">entt::as_view::entity_type</a></div><div class="ttdeci">typename registry_type::entity_type entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00031">helper.hpp:31</a></div></div>
<div class="ttc" id="aclassentt_1_1as__view_html_acb61ac3405aeaef4fb051c8ebb5f0802"><div class="ttname"><a href="classentt_1_1as__view.html#acb61ac3405aeaef4fb051c8ebb5f0802">entt::as_view::registry_type</a></div><div class="ttdeci">Registry registry_type</div><div class="ttdoc">Type of registry to convert.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00029">helper.hpp:29</a></div></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#l00080">fwd.hpp:80</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#l00236">storage.hpp:236</a></div></div>
<div class="ttc" id="aclassentt_1_1basic__storage_html_a3d5a1009a9e86a3bb051eaaf01864574"><div class="ttname"><a href="classentt_1_1basic__storage.html#a3d5a1009a9e86a3bb051eaaf01864574">entt::basic_storage::get</a></div><div class="ttdeci">const value_type &amp; get(const entity_type entt) const noexcept</div><div class="ttdoc">Returns the object assigned to an entity.</div><div class="ttdef"><b>Definition:</b> <a href="storage_8hpp_source.html#l00635">storage.hpp:635</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#l00074">fwd.hpp:74</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#l00059">delegate.hpp:59</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_a1202b4027d32db124efffdf1f2f8c5a2"><div class="ttname"><a href="namespaceentt.html#a1202b4027d32db124efffdf1f2f8c5a2">entt::to_entity</a></div><div class="ttdeci">constexpr entt_traits&lt; Entity &gt;::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_a13e040e7b38a8f86d1ab2f096f37b627"><div class="ttname"><a href="namespaceentt.html#a13e040e7b38a8f86d1ab2f096f37b627">entt::id_type</a></div><div class="ttdeci">std::uint32_t id_type</div><div class="ttdoc">Alias declaration for type identifiers.</div><div class="ttdef"><b>Definition:</b> <a href="core_2fwd_8hpp_source.html#l00013">fwd.hpp:13</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_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#l00872">type_traits.hpp:872</a></div></div>
<div class="ttc" id="anamespaceentt_html_a5c7ab17a0233eb285971b211e3128249"><div class="ttname"><a href="namespaceentt.html#a5c7ab17a0233eb285971b211e3128249">entt::storage</a></div><div class="ttdeci">basic_storage&lt; Type &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#l00192">fwd.hpp:192</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_2fwd_8hpp_source.html#l00132">fwd.hpp:132</a></div></div>
<div class="ttc" id="anamespaceentt_html_ac25eea8903b4a5d58408cc2e9ecb1a2e"><div class="ttname"><a href="namespaceentt.html#ac25eea8903b4a5d58408cc2e9ecb1a2e">entt::invoke</a></div><div class="ttdeci">void invoke(Registry &amp;reg, const typename Registry::entity_type 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#l00107">helper.hpp:107</a></div></div>
<div class="ttc" id="anamespaceentt_html_ac52578c5714150de197f815c62899bce"><div class="ttname"><a href="namespaceentt.html#ac52578c5714150de197f815c62899bce">entt::registry</a></div><div class="ttdeci">basic_registry&lt;&gt; registry</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#l00195">fwd.hpp:195</a></div></div>
<div class="ttc" id="astructentt_1_1exclude__t_html"><div class="ttname"><a href="structentt_1_1exclude__t.html">entt::exclude_t</a></div><div class="ttdoc">Alias for exclusion lists.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2fwd_8hpp_source.html#l00105">fwd.hpp:105</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_2fwd_8hpp_source.html#l00122">fwd.hpp:122</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_2fwd_8hpp_source.html#l00139">fwd.hpp:139</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_00_01Type_01_4_html_a0bf3fdfbe983ec6d9ce9fae4b0465ddf"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a0bf3fdfbe983ec6d9ce9fae4b0465ddf">entt::sigh_helper&lt; Registry, Type &gt;::on_destroy</a></div><div class="ttdeci">auto on_destroy(Args &amp;&amp;...args)</div><div class="ttdoc">Forwards the call to on_destroy on the underlying storage.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00240">helper.hpp:240</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_00_01Type_01_4_html_a1d77fc6d2924e419a9cc022231ad0e32"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a1d77fc6d2924e419a9cc022231ad0e32">entt::sigh_helper&lt; Registry, Type &gt;::on_construct</a></div><div class="ttdeci">auto on_construct(Args &amp;&amp;...args)</div><div class="ttdoc">Forwards the call to on_construct on the underlying storage.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00214">helper.hpp:214</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_00_01Type_01_4_html_a2514fd73cb720dce8bde7d8ac2cf164d"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#a2514fd73cb720dce8bde7d8ac2cf164d">entt::sigh_helper&lt; Registry, Type &gt;::registry_type</a></div><div class="ttdeci">Registry registry_type</div><div class="ttdoc">Registry type.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00195">helper.hpp:195</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_00_01Type_01_4_html_abbd7db28fd4c97ba98b25c22dff7c26f"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#abbd7db28fd4c97ba98b25c22dff7c26f">entt::sigh_helper&lt; Registry, Type &gt;::on_update</a></div><div class="ttdeci">auto on_update(Args &amp;&amp;...args)</div><div class="ttdoc">Forwards the call to on_update on the underlying storage.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00227">helper.hpp:227</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_00_01Type_01_4_html_aef132e2d47c4c2b652f24fe8155736c3"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_00_01Type_01_4.html#aef132e2d47c4c2b652f24fe8155736c3">entt::sigh_helper&lt; Registry, Type &gt;::sigh_helper</a></div><div class="ttdeci">sigh_helper(registry_type &amp;ref, const id_type id=type_hash&lt; Type &gt;::value())</div><div class="ttdoc">Constructs a helper for a given registry.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00202">helper.hpp:202</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_01_4_html_a4f25dc19d359844fead2611680294f93"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a4f25dc19d359844fead2611680294f93">entt::sigh_helper&lt; Registry &gt;::sigh_helper</a></div><div class="ttdeci">sigh_helper(registry_type &amp;ref)</div><div class="ttdoc">Constructs a helper for a given registry.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00161">helper.hpp:161</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_01_4_html_a5dd4fa0484feea38dc6b464b98f2336a"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a5dd4fa0484feea38dc6b464b98f2336a">entt::sigh_helper&lt; Registry &gt;::registry_type</a></div><div class="ttdeci">Registry registry_type</div><div class="ttdoc">Registry type.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00155">helper.hpp:155</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_01_4_html_a798580968dc076c501f84f939ef1badc"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a798580968dc076c501f84f939ef1badc">entt::sigh_helper&lt; Registry &gt;::registry</a></div><div class="ttdeci">registry_type &amp; registry() noexcept</div><div class="ttdoc">Returns a reference to the underlying registry.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00179">helper.hpp:179</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_3_01Registry_01_4_html_a88c9f698912fac86d317762b2384aaf4"><div class="ttname"><a href="structentt_1_1sigh__helper_3_01Registry_01_4.html#a88c9f698912fac86d317762b2384aaf4">entt::sigh_helper&lt; Registry &gt;::with</a></div><div class="ttdeci">auto with(const id_type id=type_hash&lt; Type &gt;::value()) noexcept</div><div class="ttdoc">Binds a properly initialized helper to a given signal type.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00171">helper.hpp:171</a></div></div>
<div class="ttc" id="astructentt_1_1sigh__helper_html"><div class="ttname"><a href="structentt_1_1sigh__helper.html">entt::sigh_helper</a></div><div class="ttdoc">Primary template isn't defined on purpose.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00146">helper.hpp:146</a></div></div>
<div class="ttc" id="astructentt_1_1type__hash_html"><div class="ttname"><a href="structentt_1_1type__hash.html">entt::type_hash</a></div><div class="ttdoc">Type hash.</div><div class="ttdef"><b>Definition:</b> <a href="type__info_8hpp_source.html#l00100">type_info.hpp:100</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.6
</small></address>
</body>
</html>