188 lines
29 KiB
HTML
188 lines
29 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.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>EnTT: src/entt/resource/handle.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.9.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<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','.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: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_85dbee8884f1b3a817fa7eff8dff73ec.html">resource</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">handle.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_RESOURCE_HANDLE_HPP</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define ENTT_RESOURCE_HANDLE_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> <span class="preprocessor">#include <memory></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 <utility></span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "../config/config.h"</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "fwd.hpp"</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="keyword">namespace </span><a class="code" href="namespaceentt.html">entt</a> {</div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">template</span><<span class="keyword">typename</span> Resource></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html"> 25</a></span> <span class="keyword">class </span><a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> {</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">template</span><<span class="keyword">typename</span>></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a8b6a99848ceb85976f502438792c4b2a"> 28</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classentt_1_1resource__handle.html">resource_handle</a>;</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#aaa5bb317dff4e02ec3cef610705de341"> 32</a></span>  <span class="keyword">using</span> <a class="code" href="classentt_1_1resource__handle.html#aaa5bb317dff4e02ec3cef610705de341">size_type</a> = long;</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b"> 34</a></span>  <span class="keyword">using</span> <a class="code" href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b">resource_type</a> = Resource;</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#afb9bff321847029a473ffe4e7c486b42"> 37</a></span>  <a class="code" href="classentt_1_1resource__handle.html#afb9bff321847029a473ffe4e7c486b42">resource_handle</a>() ENTT_NOEXCEPT = default;</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a956f8cad244f0239984326e6e341ff0e"> 43</a></span>  <a class="code" href="classentt_1_1resource__handle.html">resource_handle</a>(std::shared_ptr<<a class="code" href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b">resource_type</a>> res) ENTT_NOEXCEPT</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  : resource{std::move(res)} {}</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#ab41848b032f6f27bc52c7cfa1f19cb36"> 50</a></span>  <a class="code" href="classentt_1_1resource__handle.html#ab41848b032f6f27bc52c7cfa1f19cb36">resource_handle</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> &other) ENTT_NOEXCEPT = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a15d311a1fdcde8ee910df415b21e9f07"> 56</a></span>  <a class="code" href="classentt_1_1resource__handle.html#a15d311a1fdcde8ee910df415b21e9f07">resource_handle</a>(<a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> &&other) ENTT_NOEXCEPT = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Other></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a7e10e22e344bc029eb6b1f90293276a0"> 65</a></span>  <a class="code" href="classentt_1_1resource__handle.html#a7e10e22e344bc029eb6b1f90293276a0">resource_handle</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1resource__handle.html">resource_handle<Other></a> &other, <a class="code" href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b">resource_type</a> &res) noexcept</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  : resource{other.resource, std::addressof(res)} {}</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Other, <span class="keyword">typename</span> = std::enable_if_t<!std::is_same_v<resource_type, Other> && std::is_base_of_v<resource_type, Other>>></div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#aa6462af299f1cd36898e916bbce96f55"> 74</a></span>  <a class="code" href="classentt_1_1resource__handle.html#aa6462af299f1cd36898e916bbce96f55">resource_handle</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1resource__handle.html">resource_handle<Other></a> &other) ENTT_NOEXCEPT</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  : resource{other.resource} {}</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Other, <span class="keyword">typename</span> = std::enable_if_t<!std::is_same_v<resource_type, Other> && std::is_base_of_v<resource_type, Other>>></div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a5a8f44ef759531027a6d8a7e7556b5de"> 83</a></span>  <a class="code" href="classentt_1_1resource__handle.html#a5a8f44ef759531027a6d8a7e7556b5de">resource_handle</a>(<a class="code" href="classentt_1_1resource__handle.html">resource_handle<Other></a> &&other) ENTT_NOEXCEPT</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  : resource{std::move(other.resource)} {}</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a32c522c1b72534ba95ceb7c17b9baebf"> 91</a></span>  <a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> &<a class="code" href="classentt_1_1resource__handle.html#a32c522c1b72534ba95ceb7c17b9baebf">operator=</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> &other) ENTT_NOEXCEPT = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a93f95303ff32ef9686bfa69bb75abbb6"> 98</a></span>  <a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> &<a class="code" href="classentt_1_1resource__handle.html#a93f95303ff32ef9686bfa69bb75abbb6">operator=</a>(<a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> &&other) ENTT_NOEXCEPT = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Other></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  std::enable_if_t<!std::is_same_v<resource_type, Other> && std::is_base_of_v<resource_type, Other>, <a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> &></div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a6dab45269845d4eb2e90daa813b318a6"> 108</a></span>  <a class="code" href="classentt_1_1resource__handle.html#a6dab45269845d4eb2e90daa813b318a6">operator=</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1resource__handle.html">resource_handle<Other></a> &other) ENTT_NOEXCEPT {</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  resource = other.resource;</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Other></div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  std::enable_if_t<!std::is_same_v<resource_type, Other> && std::is_base_of_v<resource_type, Other>, <a class="code" href="classentt_1_1resource__handle.html">resource_handle</a> &></div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a8236f83607681c7e421613f19eb79f56"> 121</a></span>  <a class="code" href="classentt_1_1resource__handle.html#a8236f83607681c7e421613f19eb79f56">operator=</a>(<a class="code" href="classentt_1_1resource__handle.html">resource_handle<Other></a> &&other) ENTT_NOEXCEPT {</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  resource = std::move(other.resource);</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a31d8af87e1bf0fd0502da76fd2797cfd"> 134</a></span>  [[nodiscard]] <a class="code" href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b">resource_type</a> &<a class="code" href="classentt_1_1resource__handle.html#a31d8af87e1bf0fd0502da76fd2797cfd">get</a>() const ENTT_NOEXCEPT {</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> *resource;</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="l00139"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a9ef20d31d925a71d0fa95c8ac5a28dec"> 139</a></span>  [[nodiscard]] <span class="keyword">operator</span> <a class="code" href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b">resource_type</a> &() <span class="keyword">const</span> ENTT_NOEXCEPT {</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">return</span> <a class="code" href="classentt_1_1resource__handle.html#a31d8af87e1bf0fd0502da76fd2797cfd">get</a>();</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  }</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  </div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a505077caf97084b6f507c635e4d3630b"> 144</a></span>  [[nodiscard]] <a class="code" href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b">resource_type</a> &<a class="code" href="classentt_1_1resource__handle.html#a505077caf97084b6f507c635e4d3630b">operator*</a>() const ENTT_NOEXCEPT {</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> <a class="code" href="classentt_1_1resource__handle.html#a31d8af87e1bf0fd0502da76fd2797cfd">get</a>();</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#abdb14da5bcb5a4d1676235d9cc6b6ee3"> 157</a></span>  [[nodiscard]] <a class="code" href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b">resource_type</a> *<a class="code" href="classentt_1_1resource__handle.html#abdb14da5bcb5a4d1676235d9cc6b6ee3">operator-></a>() const ENTT_NOEXCEPT {</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">return</span> resource.get();</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  }</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a78608879425212e25817c16e3393ee07"> 165</a></span>  [[nodiscard]] <span class="keyword">explicit</span> <span class="keyword">operator</span> bool() const ENTT_NOEXCEPT {</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><span class="keywordtype">bool</span><span class="keyword">></span>(resource);</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  }</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  </div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classentt_1_1resource__handle.html#a47f319eeef51a7d1745961f2dc2ea331"> 173</a></span>  [[nodiscard]] <a class="code" href="classentt_1_1resource__handle.html#aaa5bb317dff4e02ec3cef610705de341">size_type</a> <a class="code" href="classentt_1_1resource__handle.html#a47f319eeef51a7d1745961f2dc2ea331">use_count</a>() const ENTT_NOEXCEPT {</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">return</span> resource.use_count();</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  }</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  </div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  std::shared_ptr<resource_type> resource;</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> };</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> } <span class="comment">// namespace entt</span></div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html"><div class="ttname"><a href="classentt_1_1resource__handle.html">entt::resource_handle</a></div><div class="ttdoc">Shared resource handle.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00025">handle.hpp:25</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a15d311a1fdcde8ee910df415b21e9f07"><div class="ttname"><a href="classentt_1_1resource__handle.html#a15d311a1fdcde8ee910df415b21e9f07">entt::resource_handle::resource_handle</a></div><div class="ttdeci">resource_handle(resource_handle &&other)=default</div><div class="ttdoc">Move constructor.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a31d8af87e1bf0fd0502da76fd2797cfd"><div class="ttname"><a href="classentt_1_1resource__handle.html#a31d8af87e1bf0fd0502da76fd2797cfd">entt::resource_handle::get</a></div><div class="ttdeci">resource_type & get() const</div><div class="ttdoc">Gets a reference to the managed resource.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00134">handle.hpp:134</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a32c522c1b72534ba95ceb7c17b9baebf"><div class="ttname"><a href="classentt_1_1resource__handle.html#a32c522c1b72534ba95ceb7c17b9baebf">entt::resource_handle::operator=</a></div><div class="ttdeci">resource_handle & operator=(const resource_handle &other)=default</div><div class="ttdoc">Copy assignment operator.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a47f319eeef51a7d1745961f2dc2ea331"><div class="ttname"><a href="classentt_1_1resource__handle.html#a47f319eeef51a7d1745961f2dc2ea331">entt::resource_handle::use_count</a></div><div class="ttdeci">size_type use_count() const</div><div class="ttdoc">Returns the number of handles pointing the same resource.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00173">handle.hpp:173</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a505077caf97084b6f507c635e4d3630b"><div class="ttname"><a href="classentt_1_1resource__handle.html#a505077caf97084b6f507c635e4d3630b">entt::resource_handle::operator*</a></div><div class="ttdeci">resource_type & operator*() const</div><div class="ttdoc">Gets a reference to the managed resource.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00144">handle.hpp:144</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a5a8f44ef759531027a6d8a7e7556b5de"><div class="ttname"><a href="classentt_1_1resource__handle.html#a5a8f44ef759531027a6d8a7e7556b5de">entt::resource_handle::resource_handle</a></div><div class="ttdeci">resource_handle(resource_handle< Other > &&other)</div><div class="ttdoc">Move constructs a handle which takes ownership of the resource.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00083">handle.hpp:83</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a6dab45269845d4eb2e90daa813b318a6"><div class="ttname"><a href="classentt_1_1resource__handle.html#a6dab45269845d4eb2e90daa813b318a6">entt::resource_handle::operator=</a></div><div class="ttdeci">std::enable_if_t<!std::is_same_v< resource_type, Other > &&std::is_base_of_v< resource_type, Other >, resource_handle & > operator=(const resource_handle< Other > &other)</div><div class="ttdoc">Copy assignment operator from foreign handle.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00108">handle.hpp:108</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a7e10e22e344bc029eb6b1f90293276a0"><div class="ttname"><a href="classentt_1_1resource__handle.html#a7e10e22e344bc029eb6b1f90293276a0">entt::resource_handle::resource_handle</a></div><div class="ttdeci">resource_handle(const resource_handle< Other > &other, resource_type &res) noexcept</div><div class="ttdoc">Aliasing constructor.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00065">handle.hpp:65</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a8236f83607681c7e421613f19eb79f56"><div class="ttname"><a href="classentt_1_1resource__handle.html#a8236f83607681c7e421613f19eb79f56">entt::resource_handle::operator=</a></div><div class="ttdeci">std::enable_if_t<!std::is_same_v< resource_type, Other > &&std::is_base_of_v< resource_type, Other >, resource_handle & > operator=(resource_handle< Other > &&other)</div><div class="ttdoc">Move assignment operator from foreign handle.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00121">handle.hpp:121</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a8fed7493bab627b5378f1e027e7c845b"><div class="ttname"><a href="classentt_1_1resource__handle.html#a8fed7493bab627b5378f1e027e7c845b">entt::resource_handle::resource_type</a></div><div class="ttdeci">Resource resource_type</div><div class="ttdoc">Type of resources managed by a cache.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00034">handle.hpp:34</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_a93f95303ff32ef9686bfa69bb75abbb6"><div class="ttname"><a href="classentt_1_1resource__handle.html#a93f95303ff32ef9686bfa69bb75abbb6">entt::resource_handle::operator=</a></div><div class="ttdeci">resource_handle & operator=(resource_handle &&other)=default</div><div class="ttdoc">Move assignment operator.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_aa6462af299f1cd36898e916bbce96f55"><div class="ttname"><a href="classentt_1_1resource__handle.html#aa6462af299f1cd36898e916bbce96f55">entt::resource_handle::resource_handle</a></div><div class="ttdeci">resource_handle(const resource_handle< Other > &other)</div><div class="ttdoc">Copy constructs a handle which shares ownership of the resource.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00074">handle.hpp:74</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_aaa5bb317dff4e02ec3cef610705de341"><div class="ttname"><a href="classentt_1_1resource__handle.html#aaa5bb317dff4e02ec3cef610705de341">entt::resource_handle::size_type</a></div><div class="ttdeci">long size_type</div><div class="ttdoc">Unsigned integer type.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00032">handle.hpp:32</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_ab41848b032f6f27bc52c7cfa1f19cb36"><div class="ttname"><a href="classentt_1_1resource__handle.html#ab41848b032f6f27bc52c7cfa1f19cb36">entt::resource_handle::resource_handle</a></div><div class="ttdeci">resource_handle(const resource_handle &other)=default</div><div class="ttdoc">Copy constructor.</div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_abdb14da5bcb5a4d1676235d9cc6b6ee3"><div class="ttname"><a href="classentt_1_1resource__handle.html#abdb14da5bcb5a4d1676235d9cc6b6ee3">entt::resource_handle::operator-></a></div><div class="ttdeci">resource_type * operator->() const</div><div class="ttdoc">Gets a pointer to the managed resource.</div><div class="ttdef"><b>Definition:</b> <a href="resource_2handle_8hpp_source.html#l00157">handle.hpp:157</a></div></div>
|
|
<div class="ttc" id="aclassentt_1_1resource__handle_html_afb9bff321847029a473ffe4e7c486b42"><div class="ttname"><a href="classentt_1_1resource__handle.html#afb9bff321847029a473ffe4e7c486b42">entt::resource_handle::resource_handle</a></div><div class="ttdeci">resource_handle()=default</div><div class="ttdoc">Default constructor.</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__hash__map_8hpp_source.html#l00021">dense_hash_map.hpp:21</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|