189 lines
27 KiB
HTML
189 lines
27 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.8.20"/>
|
|
<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
|
|
 <span id="projectnumber">3.6.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.20 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @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&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> <span class="preprocessor">#ifndef ENTT_ENTITY_HELPER_HPP</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define ENTT_ENTITY_HELPER_HPP</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <type_traits></span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "../config/config.h"</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "../core/type_traits.hpp"</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "../signal/delegate.hpp"</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "registry.hpp"</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "fwd.hpp"</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span><a class="code" href="namespaceentt.html">entt</a> {</div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html"> 21</a></span> <span class="keyword">struct </span><a class="code" href="structentt_1_1as__view.html">as_view</a> {</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html#ae9599a1614990478c3331fbf562f36c7"> 23</a></span>  <span class="keyword">using</span> <a class="code" href="structentt_1_1as__view.html#ae9599a1614990478c3331fbf562f36c7">entity_type</a> = std::remove_const_t<Entity>;</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html#acf6e812f1ff9a8a0a0af828b6597dace"> 25</a></span>  <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<basic_registry<entity_type></a>, Entity>;</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html#a4268e90b647cb78614581afd53e2e5c5"> 31</a></span>  <a class="code" href="structentt_1_1as__view.html#a4268e90b647cb78614581afd53e2e5c5">as_view</a>(<a class="code" href="structentt_1_1as__view.html#acf6e812f1ff9a8a0a0af828b6597dace">registry_type</a> &source) ENTT_NOEXCEPT: reg{source} {}</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Exclude, <span class="keyword">typename</span>... Component></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structentt_1_1as__view.html#a60dbb15ef8f1a184510c0652ed1c6afd"> 40</a></span>  <span class="keyword">operator</span> <a class="code" href="classentt_1_1basic__view.html">basic_view</a><<a class="code" href="structentt_1_1as__view.html#ae9599a1614990478c3331fbf562f36c7">entity_type</a>, Exclude, Component...>() <span class="keyword">const</span> {</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> reg.template <a class="code" href="classentt_1_1basic__view.html">view</a><Component...>(Exclude{});</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="structentt_1_1as__view.html#acf6e812f1ff9a8a0a0af828b6597dace">registry_type</a> &reg;</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> };</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="namespaceentt.html#a02c6e95072e8388155761aa1a24d1bc4"> 58</a></span> <a class="code" href="namespaceentt.html#a02c6e95072e8388155761aa1a24d1bc4">as_view</a>(<a class="code" href="classentt_1_1basic__registry.html">basic_registry<Entity></a> &) ENTT_NOEXCEPT -> <a class="code" href="structentt_1_1as__view.html">as_view<Entity></a>;</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="namespaceentt.html#a5cf7822d817098d1d9e70a6f62dfad45"> 63</a></span> <a class="code" href="namespaceentt.html#a02c6e95072e8388155761aa1a24d1bc4">as_view</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__registry.html">basic_registry<Entity></a> &) ENTT_NOEXCEPT -> <a class="code" href="structentt_1_1as__view.html">as_view<const Entity></a>;</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html"> 71</a></span> <span class="keyword">struct </span><a class="code" href="structentt_1_1as__group.html">as_group</a> {</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html#ab9e7aee21b99a979368535a5d5054137"> 73</a></span>  <span class="keyword">using</span> <a class="code" href="structentt_1_1as__group.html#ab9e7aee21b99a979368535a5d5054137">entity_type</a> = std::remove_const_t<Entity>;</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html#a6aa30140ac29c50156197aad66b54ccb"> 75</a></span>  <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<basic_registry<entity_type></a>, Entity>;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html#a631a3000218160018872f3046bce4a9a"> 81</a></span>  <a class="code" href="structentt_1_1as__group.html#a631a3000218160018872f3046bce4a9a">as_group</a>(<a class="code" href="structentt_1_1as__group.html#a6aa30140ac29c50156197aad66b54ccb">registry_type</a> &source) ENTT_NOEXCEPT: reg{source} {}</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Exclude, <span class="keyword">typename</span> Get, <span class="keyword">typename</span>... Owned></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structentt_1_1as__group.html#a96ea6c8822b55542d4f59530039394db"> 91</a></span>  <span class="keyword">operator</span> <a class="code" href="classentt_1_1basic__group.html">basic_group</a><<a class="code" href="structentt_1_1as__group.html#ab9e7aee21b99a979368535a5d5054137">entity_type</a>, Exclude, Get, Owned...>() <span class="keyword">const</span> {</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">if</span> constexpr(std::is_const_v<registry_type>) {</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> reg.template group_if_exists<Owned...>(Get{}, Exclude{});</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> reg.template <a class="code" href="classentt_1_1basic__group.html">group</a><Owned...>(Get{}, Exclude{});</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="structentt_1_1as__group.html#a6aa30140ac29c50156197aad66b54ccb">registry_type</a> &reg;</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> };</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="namespaceentt.html#a67521c81f5cd3582c6e8d00c03c909cd"> 113</a></span> <a class="code" href="namespaceentt.html#a67521c81f5cd3582c6e8d00c03c909cd">as_group</a>(<a class="code" href="classentt_1_1basic__registry.html">basic_registry<Entity></a> &) ENTT_NOEXCEPT -> <a class="code" href="structentt_1_1as__group.html">as_group<Entity></a>;</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="namespaceentt.html#ac03bdf3829b777be58dea73dace36bae"> 118</a></span> <a class="code" href="namespaceentt.html#a67521c81f5cd3582c6e8d00c03c909cd">as_group</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__registry.html">basic_registry<Entity></a> &) ENTT_NOEXCEPT -> <a class="code" href="structentt_1_1as__group.html">as_group<const Entity></a>;</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="keyword">template</span><auto Member, <span class="keyword">typename</span> Entity = entity></div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="namespaceentt.html#aa512a354fe328df6be5a92eb43cd4d69"> 130</a></span> <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<Entity></a> &reg, <span class="keyword">const</span> Entity <a class="code" href="namespaceentt.html">entt</a>) {</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  static_assert(std::is_member_function_pointer_v<decltype(Member)>, <span class="stringliteral">"Invalid pointer to non-static member function"</span>);</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classentt_1_1delegate.html">delegate</a><void(<a class="code" href="classentt_1_1basic__registry.html">basic_registry<Entity></a> &, <span class="keyword">const</span> Entity)> func;</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  func.template connect<Member>(reg.template <a class="code" href="namespaceentt.html#a8c24ecc5ab0055f9f2a4725c95afb29e">get</a><<a class="code" href="namespaceentt.html#a49f19d031690e5ebfffd6c7a4f6bd364">member_class_t</a><decltype(Member)>>(<a class="code" href="namespaceentt.html">entt</a>));</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  func(reg, <a class="code" href="namespaceentt.html">entt</a>);</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity, <span class="keyword">typename</span> Component></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="namespaceentt.html#adb31e9165a07456c03f8c64295117824"> 147</a></span> Entity <a class="code" href="namespaceentt.html#adb31e9165a07456c03f8c64295117824">to_entity</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__registry.html">basic_registry<Entity></a> &reg, <span class="keyword">const</span> Component &component) {</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">return</span> *(reg.template data<Component>() + (&component - reg.template raw<Component>()));</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  </div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> }</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="preprocessor">#endif</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<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< basic_registry< entity_type >, Entity > registry_type</div><div class="ttdoc">Type of registry to convert.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00025">helper.hpp:25</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< Type... > 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#l00040">utility.hpp:40</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1as__view_html_a4268e90b647cb78614581afd53e2e5c5"><div class="ttname"><a href="structentt_1_1as__view.html#a4268e90b647cb78614581afd53e2e5c5">entt::as_view::as_view</a></div><div class="ttdeci">as_view(registry_type &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#l00031">helper.hpp:31</a></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#l00071">helper.hpp:71</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1as__group_html_a631a3000218160018872f3046bce4a9a"><div class="ttname"><a href="structentt_1_1as__group.html#a631a3000218160018872f3046bce4a9a">entt::as_group::as_group</a></div><div class="ttdeci">as_group(registry_type &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#l00081">helper.hpp:81</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#l00032">fwd.hpp:32</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a67521c81f5cd3582c6e8d00c03c909cd"><div class="ttname"><a href="namespaceentt.html#a67521c81f5cd3582c6e8d00c03c909cd">entt::as_group</a></div><div class="ttdeci">as_group(basic_registry< Entity > &) noexcept -> as_group< Entity ></div><div class="ttdoc">Deduction guide.</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="algorithm_8hpp_source.html#l00013">algorithm.hpp:13</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_adb31e9165a07456c03f8c64295117824"><div class="ttname"><a href="namespaceentt.html#adb31e9165a07456c03f8c64295117824">entt::to_entity</a></div><div class="ttdeci">Entity to_entity(const basic_registry< Entity > &reg, const Component &component)</div><div class="ttdoc">Returns the entity associated with a given component.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00147">helper.hpp:147</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< Entity > &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#l00130">helper.hpp:130</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#l00044">registry.hpp:44</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a02c6e95072e8388155761aa1a24d1bc4"><div class="ttname"><a href="namespaceentt.html#a02c6e95072e8388155761aa1a24d1bc4">entt::as_view</a></div><div class="ttdeci">as_view(basic_registry< Entity > &) noexcept -> as_view< Entity ></div><div class="ttdoc">Deduction guide.</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< Entity > entity_type</div><div class="ttdoc">Underlying entity identifier.</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"><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#l00021">helper.hpp:21</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.</div><div class="ttdef"><b>Definition:</b> <a href="entity_2fwd_8hpp_source.html#l00024">fwd.hpp:24</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< basic_registry< entity_type >, Entity > registry_type</div><div class="ttdoc">Type of registry to convert.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00075">helper.hpp:75</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#l00082">delegate.hpp:82</a></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< To, From >::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#l00549">type_traits.hpp:549</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< Entity > entity_type</div><div class="ttdoc">Underlying entity identifier.</div><div class="ttdef"><b>Definition:</b> <a href="helper_8hpp_source.html#l00073">helper.hpp:73</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< Member >::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#l00580">type_traits.hpp:580</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
|
|
</small></address>
|
|
</body>
|
|
</html>
|