Files
entt/locator_8hpp_source.html
2025-03-19 15:49:42 +01:00

213 lines
25 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.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EnTT: src/entt/locator/locator.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>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.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.15.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<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">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @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',false);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- 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_b64489a1e8130d5ebf6d86d282f500f0.html">locator</a></li> </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
<div class="headertitle"><div class="title">locator.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_LOCATOR_LOCATOR_HPP</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ENTT_LOCATOR_LOCATOR_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;utility&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &quot;../config/config.h&quot;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Service&gt;</div>
<div class="foldopen" id="foldopen00027" data-start="{" data-end="};">
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html"> 27</a></span><span class="keyword">class </span><a class="code hl_function" href="classentt_1_1locator.html#af0226a1ca179eba7e3b63ee47c1d668c">locator</a> final {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">class </span>service_handle {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_function" href="classentt_1_1locator.html#af0226a1ca179eba7e3b63ee47c1d668c">locator</a>&lt;Service&gt;;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> std::shared_ptr&lt;Service&gt; <a class="code hl_function" href="classentt_1_1locator.html#a5f2beb12925d1cfac5c55d5aca65e47e">value</a>{};</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> };</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#aa1b4b856f4d36f39bbbecfd79cb380ee"> 35</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1locator.html#aa1b4b856f4d36f39bbbecfd79cb380ee">type</a> = Service;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a7e3d9c6d4d882e69720e9fc20d34f08d"> 37</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1locator.html#a7e3d9c6d4d882e69720e9fc20d34f08d">node_type</a> = service_handle;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#af0226a1ca179eba7e3b63ee47c1d668c"> 40</a></span> <a class="code hl_function" href="classentt_1_1locator.html#af0226a1ca179eba7e3b63ee47c1d668c">locator</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a82dc46a7f4d405b674e487236fea8a2f"> 43</a></span> <a class="code hl_function" href="classentt_1_1locator.html#a82dc46a7f4d405b674e487236fea8a2f">locator</a>(<span class="keyword">const</span> <a class="code hl_function" href="classentt_1_1locator.html#af0226a1ca179eba7e3b63ee47c1d668c">locator</a> &amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a9f224d476bcb081004089f419a1ddde5"> 46</a></span> <a class="code hl_function" href="classentt_1_1locator.html#a9f224d476bcb081004089f419a1ddde5">~locator</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a0a8dc9e782cce49d16fe39cfbd94f70b"> 52</a></span> <a class="code hl_function" href="classentt_1_1locator.html#af0226a1ca179eba7e3b63ee47c1d668c">locator</a> &amp;<a class="code hl_function" href="classentt_1_1locator.html#a0a8dc9e782cce49d16fe39cfbd94f70b">operator=</a>(<span class="keyword">const</span> <a class="code hl_function" href="classentt_1_1locator.html#af0226a1ca179eba7e3b63ee47c1d668c">locator</a> &amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span></div>
<div class="foldopen" id="foldopen00058" data-start="{" data-end="}">
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a7b01ea26c3def3465fb0223034a8fc72"> 58</a></span> [[nodiscard]] <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1locator.html#a7b01ea26c3def3465fb0223034a8fc72">has_value</a>() noexcept {</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">return</span> (service != <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span></div>
<div class="foldopen" id="foldopen00071" data-start="{" data-end="}">
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a5f2beb12925d1cfac5c55d5aca65e47e"> 71</a></span> [[nodiscard]] <span class="keyword">static</span> Service &amp;<a class="code hl_function" href="classentt_1_1locator.html#a5f2beb12925d1cfac5c55d5aca65e47e">value</a>() noexcept {</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> ENTT_ASSERT(<a class="code hl_function" href="classentt_1_1locator.html#a7b01ea26c3def3465fb0223034a8fc72">has_value</a>(), <span class="stringliteral">&quot;Service not available&quot;</span>);</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> *service;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type = Service, <span class="keyword">typename</span>... Args&gt;</div>
<div class="foldopen" id="foldopen00088" data-start="{" data-end="}">
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#ad7a9c3555e6ff2b67f9ad3af7f99a728"> 88</a></span> [[nodiscard]] <span class="keyword">static</span> Service &amp;<a class="code hl_function" href="classentt_1_1locator.html#ad7a9c3555e6ff2b67f9ad3af7f99a728">value_or</a>(Args &amp;&amp;...args) {</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">return</span> service ? *service : <a class="code hl_function" href="classentt_1_1locator.html#afb27544514506214a6adaf563ca7862b">emplace&lt;Type&gt;</a>(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type = Service, <span class="keyword">typename</span>... Args&gt;</div>
<div class="foldopen" id="foldopen00100" data-start="{" data-end="}">
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#afb27544514506214a6adaf563ca7862b"> 100</a></span> <span class="keyword">static</span> Service &amp;<a class="code hl_function" href="classentt_1_1locator.html#afb27544514506214a6adaf563ca7862b">emplace</a>(Args &amp;&amp;...args) {</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> service = std::make_shared&lt;Type&gt;(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keywordflow">return</span> *service;</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> }</div>
</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type = Service, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... Args&gt;</div>
<div class="foldopen" id="foldopen00115" data-start="{" data-end="}">
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a3695e31fe7e6ae073ac6a3555a43b425"> 115</a></span> <span class="keyword">static</span> Service &amp;<a class="code hl_function" href="classentt_1_1locator.html#a3695e31fe7e6ae073ac6a3555a43b425">emplace</a>(std::allocator_arg_t, Allocator alloc, Args &amp;&amp;...args) {</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> service = std::allocate_shared&lt;Type&gt;(alloc, std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">return</span> *service;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span></div>
<div class="foldopen" id="foldopen00124" data-start="{" data-end="}">
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a09b8c4659e08c600c113ce9e5b8fa7d3"> 124</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="classentt_1_1locator.html#a7e3d9c6d4d882e69720e9fc20d34f08d">node_type</a> <a class="code hl_function" href="classentt_1_1locator.html#a09b8c4659e08c600c113ce9e5b8fa7d3">handle</a>() noexcept {</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <a class="code hl_typedef" href="classentt_1_1locator.html#a7e3d9c6d4d882e69720e9fc20d34f08d">node_type</a> node{};</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> node.value = service;</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">return</span> node;</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> }</div>
</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span></div>
<div class="foldopen" id="foldopen00134" data-start="{" data-end="}">
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a51c0f72339094183a1779da8bf01ee22"> 134</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1locator.html#a51c0f72339094183a1779da8bf01ee22">reset</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classentt_1_1locator.html#a7e3d9c6d4d882e69720e9fc20d34f08d">node_type</a> &amp;other = {}) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> service = other.value;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</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> Type, <span class="keyword">typename</span> Deleter = std::default_delete&lt;Type&gt;&gt;</div>
<div class="foldopen" id="foldopen00146" data-start="{" data-end="}">
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="classentt_1_1locator.html#a319183a62597f0c5f58470e98eb2a2a3"> 146</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1locator.html#a319183a62597f0c5f58470e98eb2a2a3">reset</a>(Type *elem, Deleter deleter = {}) {</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> service = std::shared_ptr&lt;Service&gt;{elem, std::move(deleter)};</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> }</div>
</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="comment">// std::shared_ptr because of its type erased allocator which is useful here</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="comment">// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)</span></div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keyword">inline</span> <span class="keyword">static</span> std::shared_ptr&lt;Service&gt; service{};</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span>};</div>
</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span>} <span class="comment">// namespace entt</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassentt_1_1locator_html_a09b8c4659e08c600c113ce9e5b8fa7d3"><div class="ttname"><a href="classentt_1_1locator.html#a09b8c4659e08c600c113ce9e5b8fa7d3">entt::locator::handle</a></div><div class="ttdeci">static node_type handle() noexcept</div><div class="ttdoc">Returns a handle to the underlying service.</div><div class="ttdef"><b>Definition</b> <a href="#l00124">locator.hpp:124</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a0a8dc9e782cce49d16fe39cfbd94f70b"><div class="ttname"><a href="classentt_1_1locator.html#a0a8dc9e782cce49d16fe39cfbd94f70b">entt::locator::operator=</a></div><div class="ttdeci">locator &amp; operator=(const locator &amp;)=delete</div><div class="ttdoc">Default copy assignment operator, deleted on purpose.</div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a319183a62597f0c5f58470e98eb2a2a3"><div class="ttname"><a href="classentt_1_1locator.html#a319183a62597f0c5f58470e98eb2a2a3">entt::locator::reset</a></div><div class="ttdeci">static void reset(Type *elem, Deleter deleter={})</div><div class="ttdoc">Resets or replaces a service.</div><div class="ttdef"><b>Definition</b> <a href="#l00146">locator.hpp:146</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a3695e31fe7e6ae073ac6a3555a43b425"><div class="ttname"><a href="classentt_1_1locator.html#a3695e31fe7e6ae073ac6a3555a43b425">entt::locator::emplace</a></div><div class="ttdeci">static Service &amp; emplace(std::allocator_arg_t, Allocator alloc, Args &amp;&amp;...args)</div><div class="ttdoc">Sets or replaces a service using a given allocator.</div><div class="ttdef"><b>Definition</b> <a href="#l00115">locator.hpp:115</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a51c0f72339094183a1779da8bf01ee22"><div class="ttname"><a href="classentt_1_1locator.html#a51c0f72339094183a1779da8bf01ee22">entt::locator::reset</a></div><div class="ttdeci">static void reset(const node_type &amp;other={}) noexcept</div><div class="ttdoc">Resets or replaces a service.</div><div class="ttdef"><b>Definition</b> <a href="#l00134">locator.hpp:134</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a5f2beb12925d1cfac5c55d5aca65e47e"><div class="ttname"><a href="classentt_1_1locator.html#a5f2beb12925d1cfac5c55d5aca65e47e">entt::locator::value</a></div><div class="ttdeci">static Service &amp; value() noexcept</div><div class="ttdoc">Returns a reference to a valid service, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00071">locator.hpp:71</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a7b01ea26c3def3465fb0223034a8fc72"><div class="ttname"><a href="classentt_1_1locator.html#a7b01ea26c3def3465fb0223034a8fc72">entt::locator::has_value</a></div><div class="ttdeci">static bool has_value() noexcept</div><div class="ttdoc">Checks whether a service locator contains a value.</div><div class="ttdef"><b>Definition</b> <a href="#l00058">locator.hpp:58</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a7e3d9c6d4d882e69720e9fc20d34f08d"><div class="ttname"><a href="classentt_1_1locator.html#a7e3d9c6d4d882e69720e9fc20d34f08d">entt::locator::node_type</a></div><div class="ttdeci">service_handle node_type</div><div class="ttdoc">Service node type.</div><div class="ttdef"><b>Definition</b> <a href="#l00037">locator.hpp:37</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a82dc46a7f4d405b674e487236fea8a2f"><div class="ttname"><a href="classentt_1_1locator.html#a82dc46a7f4d405b674e487236fea8a2f">entt::locator::locator</a></div><div class="ttdeci">locator(const locator &amp;)=delete</div><div class="ttdoc">Default copy constructor, deleted on purpose.</div></div>
<div class="ttc" id="aclassentt_1_1locator_html_a9f224d476bcb081004089f419a1ddde5"><div class="ttname"><a href="classentt_1_1locator.html#a9f224d476bcb081004089f419a1ddde5">entt::locator::~locator</a></div><div class="ttdeci">~locator()=delete</div><div class="ttdoc">Default destructor, deleted on purpose.</div></div>
<div class="ttc" id="aclassentt_1_1locator_html_aa1b4b856f4d36f39bbbecfd79cb380ee"><div class="ttname"><a href="classentt_1_1locator.html#aa1b4b856f4d36f39bbbecfd79cb380ee">entt::locator::type</a></div><div class="ttdeci">Service type</div><div class="ttdoc">Service type.</div><div class="ttdef"><b>Definition</b> <a href="#l00035">locator.hpp:35</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_ad7a9c3555e6ff2b67f9ad3af7f99a728"><div class="ttname"><a href="classentt_1_1locator.html#ad7a9c3555e6ff2b67f9ad3af7f99a728">entt::locator::value_or</a></div><div class="ttdeci">static Service &amp; value_or(Args &amp;&amp;...args)</div><div class="ttdoc">Returns a service if available or sets it from a fallback type.</div><div class="ttdef"><b>Definition</b> <a href="#l00088">locator.hpp:88</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_af0226a1ca179eba7e3b63ee47c1d668c"><div class="ttname"><a href="classentt_1_1locator.html#af0226a1ca179eba7e3b63ee47c1d668c">entt::locator::locator</a></div><div class="ttdeci">locator()=delete</div><div class="ttdoc">Default constructor, deleted on purpose.</div></div>
<div class="ttc" id="aclassentt_1_1locator_html_afb27544514506214a6adaf563ca7862b"><div class="ttname"><a href="classentt_1_1locator.html#afb27544514506214a6adaf563ca7862b">entt::locator::emplace</a></div><div class="ttdeci">static Service &amp; emplace(Args &amp;&amp;...args)</div><div class="ttdoc">Sets or replaces a service.</div><div class="ttdef"><b>Definition</b> <a href="#l00100">locator.hpp:100</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#l00022">dense_map.hpp:22</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.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>