Files
entt/structentt_1_1storage__traits.html
2021-01-09 18:58:42 +01:00

118 lines
5.9 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: entt::storage_traits&lt; Entity, Type, typename &gt; Struct Template Reference</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.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&amp;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&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="namespaceentt.html">entt</a></li><li class="navelem"><a class="el" href="structentt_1_1storage__traits.html">storage_traits</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="structentt_1_1storage__traits-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">entt::storage_traits&lt; Entity, Type, typename &gt; Struct Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Defines the component-to-storage conversion.
<a href="structentt_1_1storage__traits.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="storage_8hpp_source.html">storage.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ae65f1c2e181f0145b25881bdfcb39a6a"><td class="memItemLeft" align="right" valign="top"><a id="ae65f1c2e181f0145b25881bdfcb39a6a"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structentt_1_1storage__traits.html#ae65f1c2e181f0145b25881bdfcb39a6a">storage_type</a> = <a class="el" href="structentt_1_1sigh__storage__mixin.html">sigh_storage_mixin</a>&lt; <a class="el" href="structentt_1_1storage__adapter__mixin.html">storage_adapter_mixin</a>&lt; <a class="el" href="classentt_1_1basic__storage.html">basic_storage</a>&lt; Entity, Type &gt; &gt;&gt;</td></tr>
<tr class="memdesc:ae65f1c2e181f0145b25881bdfcb39a6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resulting type after component-to-storage conversion. <br /></td></tr>
<tr class="separator:ae65f1c2e181f0145b25881bdfcb39a6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Entity, typename Type, typename = void&gt;<br />
struct entt::storage_traits&lt; Entity, Type, typename &gt;</h3>
<p>Defines the component-to-storage conversion. </p>
<p>Formally:</p>
<ul>
<li>If the component type is a non-const one, the member typedef type is the declared storage type.</li>
<li>If the component type is a const one, the member typedef type is the declared storage type, except it has a const-qualifier added.</li>
</ul>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">Entity</td><td>A valid entity type (see <a class="el" href="structentt_1_1entt__traits.html" title="Entity traits.">entt_traits</a> for more details). </td></tr>
<tr><td class="paramname">Type</td><td>Type of objects assigned to the entities. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="storage_8hpp_source.html#l00803">803</a> of file <a class="el" href="storage_8hpp_source.html">storage.hpp</a>.</p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/entt/entity/<a class="el" href="storage_8hpp_source.html">storage.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<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>