116 lines
10 KiB
HTML
116 lines
10 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/pool.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.5.2</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">pool.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_POOL_HPP</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define ENTT_ENTITY_POOL_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 "storage.hpp"</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span><a class="code" href="namespaceentt.html">entt</a> {</div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity, <span class="keyword">typename</span> Type, <span class="keyword">typename</span> = <span class="keywordtype">void</span>></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structentt_1_1pool.html"> 27</a></span> <span class="keyword">struct </span><a class="code" href="structentt_1_1pool.html">pool</a> {</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structentt_1_1pool.html#a01369400e75656df0a7d693114251729"> 29</a></span>  <span class="keyword">using</span> <a class="code" href="classentt_1_1storage.html">type</a> = <a class="code" href="classentt_1_1storage.html">storage<Entity, Type></a>;</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> };</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity, <span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structentt_1_1pool_3_01Entity_00_01const_01Type_01_4.html"> 35</a></span> <span class="keyword">struct </span><a class="code" href="structentt_1_1pool.html">pool</a><Entity, const Type> {</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structentt_1_1pool_3_01Entity_00_01const_01Type_01_4.html#aaacd5480f9230ba95c2627e7fa77eb62"> 37</a></span>  <span class="keyword">using</span> <a class="code" href="structentt_1_1pool_3_01Entity_00_01const_01Type_01_4.html#aaacd5480f9230ba95c2627e7fa77eb62">type</a> = std::add_const_t<typename pool<Entity, std::remove_const_t<Type>><a class="code" href="structentt_1_1pool_3_01Entity_00_01const_01Type_01_4.html#aaacd5480f9230ba95c2627e7fa77eb62">::type</a>>;</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> };</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">template</span><<span class="keyword">typename</span> Entity, <span class="keyword">typename</span> Type></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="namespaceentt.html#a20340377563b9e5d0380d770619b24b6"> 47</a></span> <span class="keyword">using</span> <a class="code" href="namespaceentt.html#a20340377563b9e5d0380d770619b24b6">pool_t</a> = <span class="keyword">typename</span> <a class="code" href="classentt_1_1storage.html">pool<Entity, Type>::type</a>;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> }</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#endif</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="astructentt_1_1pool_3_01Entity_00_01const_01Type_01_4_html_aaacd5480f9230ba95c2627e7fa77eb62"><div class="ttname"><a href="structentt_1_1pool_3_01Entity_00_01const_01Type_01_4.html#aaacd5480f9230ba95c2627e7fa77eb62">entt::pool< Entity, const Type >::type</a></div><div class="ttdeci">std::add_const_t< typename pool< Entity, std::remove_const_t< Type > >::type > type</div><div class="ttdoc">Resulting type after component-to-pool conversion.</div><div class="ttdef"><b>Definition:</b> <a href="pool_8hpp_source.html#l00037">pool.hpp:37</a></div></div>
|
|
<div class="ttc" id="astructentt_1_1pool_html"><div class="ttname"><a href="structentt_1_1pool.html">entt::pool</a></div><div class="ttdoc">Applies component-to-pool conversion and defines the resulting type as the member typedef type.</div><div class="ttdef"><b>Definition:</b> <a href="pool_8hpp_source.html#l00027">pool.hpp:27</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="algorithm_8hpp_source.html#l00013">algorithm.hpp:13</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1storage_html"><div class="ttname"><a href="classentt_1_1storage.html">entt::storage</a></div><div class="ttdoc">Basic storage implementation.</div><div class="ttdef"><b>Definition:</b> <a href="storage_8hpp_source.html#l00049">storage.hpp:49</a></div></div>
|
|
<div class="ttc" id="anamespaceentt_html_a20340377563b9e5d0380d770619b24b6"><div class="ttname"><a href="namespaceentt.html#a20340377563b9e5d0380d770619b24b6">entt::pool_t</a></div><div class="ttdeci">typename pool< Entity, Type >::type pool_t</div><div class="ttdoc">Alias declaration to use to make component-to-pool conversions.</div><div class="ttdef"><b>Definition:</b> <a href="pool_8hpp_source.html#l00047">pool.hpp:47</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>
|