API reference v3.5.0
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<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.17"/>
|
||||
<meta name="generator" content="Doxygen 1.8.18"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>EnTT: src/entt/core/hashed_string.hpp Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -22,7 +22,7 @@
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">EnTT
|
||||
 <span id="projectnumber">3.4.0</span>
|
||||
 <span id="projectnumber">3.5.0</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -30,7 +30,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.17 -->
|
||||
<!-- Generated by Doxygen 1.8.18 -->
|
||||
<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');
|
||||
@@ -120,61 +120,61 @@ $(function() {
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  };</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="comment">// Fowler–Noll–Vo hash function v. 1a - the good</span></div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">static</span> constexpr <a class="code" href="namespaceentt.html#a4780f9d4e975066afb16b1309c644995">id_type</a> helper(<span class="keyword">const</span> Char *curr) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">auto</span> <a class="code" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">value</a> = traits_type::offset;</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  [[nodiscard]] <span class="keyword">static</span> constexpr <a class="code" href="namespaceentt.html#a13e040e7b38a8f86d1ab2f096f37b627">id_type</a> helper(<span class="keyword">const</span> Char *curr) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">auto</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a3dfc8c9301c62d82add17de1cb4ffc7c">value</a> = traits_type::offset;</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">while</span>(*curr != 0) {</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">value</a> = (<a class="code" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">value</a> ^ <span class="keyword">static_cast<</span>traits_type::type<span class="keyword">></span>(*(curr++))) * traits_type::prime;</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classentt_1_1basic__hashed__string.html#a3dfc8c9301c62d82add17de1cb4ffc7c">value</a> = (<a class="code" href="classentt_1_1basic__hashed__string.html#a3dfc8c9301c62d82add17de1cb4ffc7c">value</a> ^ <span class="keyword">static_cast<</span>traits_type::type<span class="keyword">></span>(*(curr++))) * traits_type::prime;</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  </div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">return</span> <a class="code" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">value</a>;</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">return</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a3dfc8c9301c62d82add17de1cb4ffc7c">value</a>;</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc"> 86</a></span>  <span class="keyword">using</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> = Char;</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9"> 88</a></span>  <span class="keyword">using</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> = <a class="code" href="namespaceentt.html#a4780f9d4e975066afb16b1309c644995">id_type</a>;</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9"> 88</a></span>  <span class="keyword">using</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> = <a class="code" href="namespaceentt.html#a13e040e7b38a8f86d1ab2f096f37b627">id_type</a>;</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> N></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#abbd837edf6b152c7b46bfd619241264c"> 106</a></span>  <span class="keyword">static</span> constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> <a class="code" href="classentt_1_1basic__hashed__string.html#abbd837edf6b152c7b46bfd619241264c">value</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> (&str)[N]) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a4e3866531b504f05e804273188f1c0c0"> 106</a></span>  [[nodiscard]] <span class="keyword">static</span> constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> <a class="code" href="classentt_1_1basic__hashed__string.html#a4e3866531b504f05e804273188f1c0c0">value</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> (&str)[N]) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> helper(str);</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a9c29491d20b14d8815229604d3580d3e"> 115</a></span>  <span class="keyword">static</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> <a class="code" href="classentt_1_1basic__hashed__string.html#a9c29491d20b14d8815229604d3580d3e">value</a>(const_wrapper wrapper) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a67cd9ffab58a312064e59dbaa09f7efa"> 115</a></span>  [[nodiscard]] <span class="keyword">static</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> <a class="code" href="classentt_1_1basic__hashed__string.html#a67cd9ffab58a312064e59dbaa09f7efa">value</a>(const_wrapper wrapper) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> helper(wrapper.str);</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a7ccb9802c4f1077537df9b56e33e1f46"> 125</a></span>  <span class="keyword">static</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> <a class="code" href="classentt_1_1basic__hashed__string.html#a7ccb9802c4f1077537df9b56e33e1f46">value</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> *str, std::size_t size) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="namespaceentt.html#a4780f9d4e975066afb16b1309c644995">id_type</a> partial{traits_type::offset};</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a032acd7551658f6e5d46d555452bd3df"> 125</a></span>  [[nodiscard]] <span class="keyword">static</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> <a class="code" href="classentt_1_1basic__hashed__string.html#a032acd7551658f6e5d46d555452bd3df">value</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> *str, std::size_t size) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="namespaceentt.html#a13e040e7b38a8f86d1ab2f096f37b627">id_type</a> partial{traits_type::offset};</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">while</span>(size--) { partial = (partial^(str++)[0])*traits_type::prime; }</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> partial;</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a2c75763872c028b062701523e0314f29"> 132</a></span>  constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#a2c75763872c028b062701523e0314f29">basic_hashed_string</a>() ENTT_NOEXCEPT</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#ad293de7f68f028a3e5bd8c5928cd2595"> 132</a></span>  constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#ad293de7f68f028a3e5bd8c5928cd2595">basic_hashed_string</a>() ENTT_NOEXCEPT</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  : str{<span class="keyword">nullptr</span>}, hash{}</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  {}</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">template</span><std::<span class="keywordtype">size_t</span> N></div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#aac422f04d11c1e5573f04809c1e1c106"> 151</a></span>  constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#aac422f04d11c1e5573f04809c1e1c106">basic_hashed_string</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> (&curr)[N]) ENTT_NOEXCEPT</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a8ec8a507ee512e130842834ac57a20b1"> 151</a></span>  constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#a8ec8a507ee512e130842834ac57a20b1">basic_hashed_string</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> (&curr)[N]) ENTT_NOEXCEPT</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  : str{curr}, hash{helper(curr)}</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="l00160"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a7ab5e09f3e552436872bcaaf9ca2c1ac"> 160</a></span>  <span class="keyword">explicit</span> constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#a7ab5e09f3e552436872bcaaf9ca2c1ac">basic_hashed_string</a>(const_wrapper wrapper) ENTT_NOEXCEPT</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#af73ccc8ea097392a5ca14d1d8dfc13f0"> 160</a></span>  <span class="keyword">explicit</span> constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#af73ccc8ea097392a5ca14d1d8dfc13f0">basic_hashed_string</a>(const_wrapper wrapper) ENTT_NOEXCEPT</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  : str{wrapper.str}, hash{helper(wrapper.str)}</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  {}</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a7ef3ad96865551846e584780146d3d24"> 168</a></span>  constexpr <span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> * <a class="code" href="classentt_1_1basic__hashed__string.html#a7ef3ad96865551846e584780146d3d24">data</a>() const ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a51ae08b41d0cab42005dfda4ab6ede4a"> 168</a></span>  [[nodiscard]] constexpr <span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> * <a class="code" href="classentt_1_1basic__hashed__string.html#a51ae08b41d0cab42005dfda4ab6ede4a">data</a>() const ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">return</span> str;</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  }</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c"> 176</a></span>  constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> <a class="code" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">value</a>() const ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a3dfc8c9301c62d82add17de1cb4ffc7c"> 176</a></span>  [[nodiscard]] constexpr <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a> <a class="code" href="classentt_1_1basic__hashed__string.html#a3dfc8c9301c62d82add17de1cb4ffc7c">value</a>() const ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">return</span> hash;</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  }</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#ad0cc0b27f0dd52a07e25f5014ba426fc"> 181</a></span>  constexpr <span class="keyword">operator</span> <span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> *() <span class="keyword">const</span> ENTT_NOEXCEPT { <span class="keywordflow">return</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a7ef3ad96865551846e584780146d3d24">data</a>(); }</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#aea866875a9b05e5c01c9642766a5857f"> 181</a></span>  [[nodiscard]] constexpr <span class="keyword">operator</span> <span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> *() <span class="keyword">const</span> ENTT_NOEXCEPT { <span class="keywordflow">return</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a51ae08b41d0cab42005dfda4ab6ede4a">data</a>(); }</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#aa2009a1ac648d8bdaeac642a6476f2bd"> 187</a></span>  constexpr <span class="keyword">operator</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a>() const ENTT_NOEXCEPT { <span class="keywordflow">return</span> <a class="code" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">value</a>(); }</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#af0018b378b254991675acc20ba2c600d"> 187</a></span>  [[nodiscard]] constexpr <span class="keyword">operator</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">hash_type</a>() const ENTT_NOEXCEPT { <span class="keywordflow">return</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a3dfc8c9301c62d82add17de1cb4ffc7c">value</a>(); }</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a51311d6903443296ce076536df2b46da"> 194</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a51311d6903443296ce076536df2b46da">operator==</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html">basic_hashed_string</a> &other) <span class="keyword">const</span> ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classentt_1_1basic__hashed__string.html#a168ddcf724ba17c60b38093ea520aa20"> 194</a></span>  [[nodiscard]] constexpr <span class="keywordtype">bool</span> <a class="code" href="classentt_1_1basic__hashed__string.html#a168ddcf724ba17c60b38093ea520aa20">operator==</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html">basic_hashed_string</a> &other) <span class="keyword">const</span> ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">return</span> hash == other.hash;</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
|
||||
@@ -185,12 +185,12 @@ $(function() {
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  </div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="keyword">template</span><<span class="keyword">typename</span> Char, std::<span class="keywordtype">size_t</span> N></div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <a class="code" href="namespaceentt.html#a32ab4306d014ba95869e88be161145b0">basic_hashed_string</a>(<span class="keyword">const</span> Char (&str)[N]) ENTT_NOEXCEPT</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> -> basic_hashed_string<Char>;</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="namespaceentt.html#a3221623cd9ea8247dfe3512a40f7fb8a"> 215</a></span> <a class="code" href="namespaceentt.html#a3221623cd9ea8247dfe3512a40f7fb8a">basic_hashed_string</a>(<span class="keyword">const</span> Char (&str)[N]) ENTT_NOEXCEPT</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> -> <a class="code" href="classentt_1_1basic__hashed__string.html">basic_hashed_string<Char></a>;</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  </div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="keyword">template</span><<span class="keyword">typename</span> Char></div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="namespaceentt.html#a1a211752d12273a08015c524133e27c3"> 227</a></span> constexpr <span class="keywordtype">bool</span> <a class="code" href="namespaceentt.html#a1a211752d12273a08015c524133e27c3">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html">basic_hashed_string<Char></a> &lhs, <span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html">basic_hashed_string<Char></a> &rhs) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf"> 227</a></span> [[nodiscard]] constexpr <span class="keywordtype">bool</span> <a class="code" href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html">basic_hashed_string<Char></a> &lhs, <span class="keyword">const</span> <a class="code" href="classentt_1_1basic__hashed__string.html">basic_hashed_string<Char></a> &rhs) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keywordflow">return</span> !(lhs == rhs);</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> }</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  </div>
|
||||
@@ -204,12 +204,12 @@ $(function() {
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> }</div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  </div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  </div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> constexpr <a class="code" href="classentt_1_1basic__hashed__string.html">entt::hashed_string</a> <span class="keyword">operator</span><span class="stringliteral">""</span> ENTT_HS_SUFFIX(<span class="keyword">const</span> <span class="keywordtype">char</span> *str, std::size_t) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> [[nodiscard]] constexpr <a class="code" href="classentt_1_1basic__hashed__string.html">entt::hashed_string</a> <span class="keyword">operator</span><span class="stringliteral">""</span> ENTT_HS_SUFFIX(<span class="keyword">const</span> <span class="keywordtype">char</span> *str, std::size_t) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordflow">return</span> <a class="code" href="classentt_1_1basic__hashed__string.html">entt::hashed_string</a>{str};</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> }</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  </div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  </div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> constexpr <a class="code" href="classentt_1_1basic__hashed__string.html">entt::hashed_wstring</a> <span class="keyword">operator</span><span class="stringliteral">""</span> ENTT_HWS_SUFFIX(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *str, std::size_t) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> [[nodiscard]] constexpr <a class="code" href="classentt_1_1basic__hashed__string.html">entt::hashed_wstring</a> <span class="keyword">operator</span><span class="stringliteral">""</span> ENTT_HWS_SUFFIX(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *str, std::size_t) ENTT_NOEXCEPT {</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">return</span> <a class="code" href="classentt_1_1basic__hashed__string.html">entt::hashed_wstring</a>{str};</div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> }</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  </div>
|
||||
@@ -217,26 +217,26 @@ $(function() {
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="preprocessor">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_ad4e8f181e92b9218747ac43fe24c4cbc"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">entt::basic_hashed_string::value_type</a></div><div class="ttdeci">Char value_type</div><div class="ttdoc">Character type.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00086">hashed_string.hpp:86</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_abbd837edf6b152c7b46bfd619241264c"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#abbd837edf6b152c7b46bfd619241264c">entt::basic_hashed_string::value</a></div><div class="ttdeci">static constexpr hash_type value(const value_type(&str)[N]) ENTT_NOEXCEPT</div><div class="ttdoc">Returns directly the numeric representation of a string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00106">hashed_string.hpp:106</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a51311d6903443296ce076536df2b46da"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a51311d6903443296ce076536df2b46da">entt::basic_hashed_string::operator==</a></div><div class="ttdeci">constexpr bool operator==(const basic_hashed_string &other) const ENTT_NOEXCEPT</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00194">hashed_string.hpp:194</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_aac422f04d11c1e5573f04809c1e1c106"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#aac422f04d11c1e5573f04809c1e1c106">entt::basic_hashed_string::basic_hashed_string</a></div><div class="ttdeci">constexpr basic_hashed_string(const value_type(&curr)[N]) ENTT_NOEXCEPT</div><div class="ttdoc">Constructs a hashed string from an array of const characters.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00151">hashed_string.hpp:151</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a2c75763872c028b062701523e0314f29"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a2c75763872c028b062701523e0314f29">entt::basic_hashed_string::basic_hashed_string</a></div><div class="ttdeci">constexpr basic_hashed_string() ENTT_NOEXCEPT</div><div class="ttdoc">Constructs an empty hashed string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00132">hashed_string.hpp:132</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_ad293de7f68f028a3e5bd8c5928cd2595"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#ad293de7f68f028a3e5bd8c5928cd2595">entt::basic_hashed_string::basic_hashed_string</a></div><div class="ttdeci">constexpr basic_hashed_string() noexcept</div><div class="ttdoc">Constructs an empty hashed string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00132">hashed_string.hpp:132</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a032acd7551658f6e5d46d555452bd3df"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a032acd7551658f6e5d46d555452bd3df">entt::basic_hashed_string::value</a></div><div class="ttdeci">static hash_type value(const value_type *str, std::size_t size) noexcept</div><div class="ttdoc">Returns directly the numeric representation of a string view.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00125">hashed_string.hpp:125</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a168ddcf724ba17c60b38093ea520aa20"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a168ddcf724ba17c60b38093ea520aa20">entt::basic_hashed_string::operator==</a></div><div class="ttdeci">constexpr bool operator==(const basic_hashed_string &other) const noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00194">hashed_string.hpp:194</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a67cd9ffab58a312064e59dbaa09f7efa"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a67cd9ffab58a312064e59dbaa09f7efa">entt::basic_hashed_string::value</a></div><div class="ttdeci">static hash_type value(const_wrapper wrapper) noexcept</div><div class="ttdoc">Returns directly the numeric representation of a string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00115">hashed_string.hpp:115</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a13e040e7b38a8f86d1ab2f096f37b627"><div class="ttname"><a href="namespaceentt.html#a13e040e7b38a8f86d1ab2f096f37b627">entt::id_type</a></div><div class="ttdeci">std::uint32_t id_type</div><div class="ttdoc">Alias declaration for type identifiers.</div><div class="ttdef"><b>Definition:</b> <a href="core_2fwd_8hpp_source.html#l00012">fwd.hpp:12</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html">entt::basic_hashed_string</a></div><div class="ttdoc">Zero overhead unique identifier.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00064">hashed_string.hpp:64</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_1basic__hashed__string_html_a7ef3ad96865551846e584780146d3d24"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a7ef3ad96865551846e584780146d3d24">entt::basic_hashed_string::data</a></div><div class="ttdeci">constexpr const value_type * data() const ENTT_NOEXCEPT</div><div class="ttdoc">Returns the human-readable representation of a hashed string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00168">hashed_string.hpp:168</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a9c29491d20b14d8815229604d3580d3e"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a9c29491d20b14d8815229604d3580d3e">entt::basic_hashed_string::value</a></div><div class="ttdeci">static hash_type value(const_wrapper wrapper) ENTT_NOEXCEPT</div><div class="ttdoc">Returns directly the numeric representation of a string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00115">hashed_string.hpp:115</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a4780f9d4e975066afb16b1309c644995"><div class="ttname"><a href="namespaceentt.html#a4780f9d4e975066afb16b1309c644995">entt::id_type</a></div><div class="ttdeci">ENTT_ID_TYPE id_type</div><div class="ttdoc">Alias declaration for type identifiers.</div><div class="ttdef"><b>Definition:</b> <a href="core_2fwd_8hpp_source.html#l00012">fwd.hpp:12</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_afb3a92282e81fb50af66953f39671f3c"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">entt::basic_hashed_string::value</a></div><div class="ttdeci">constexpr hash_type value() const ENTT_NOEXCEPT</div><div class="ttdoc">Returns the numeric representation of a hashed string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00176">hashed_string.hpp:176</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a1a211752d12273a08015c524133e27c3"><div class="ttname"><a href="namespaceentt.html#a1a211752d12273a08015c524133e27c3">entt::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) ENTT_NOEXCEPT</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00227">hashed_string.hpp:227</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a7ab5e09f3e552436872bcaaf9ca2c1ac"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a7ab5e09f3e552436872bcaaf9ca2c1ac">entt::basic_hashed_string::basic_hashed_string</a></div><div class="ttdeci">constexpr basic_hashed_string(const_wrapper wrapper) ENTT_NOEXCEPT</div><div class="ttdoc">Explicit constructor on purpose to avoid constructing a hashed string directly from a const value_typ...</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00160">hashed_string.hpp:160</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a32ab4306d014ba95869e88be161145b0"><div class="ttname"><a href="namespaceentt.html#a32ab4306d014ba95869e88be161145b0">entt::basic_hashed_string</a></div><div class="ttdeci">basic_hashed_string(const Char(&str)[N]) ENTT_NOEXCEPT -> basic_hashed_string< Char ></div><div class="ttdoc">Deduction guide.</div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a51ae08b41d0cab42005dfda4ab6ede4a"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a51ae08b41d0cab42005dfda4ab6ede4a">entt::basic_hashed_string::data</a></div><div class="ttdeci">constexpr const value_type * data() const noexcept</div><div class="ttdoc">Returns the human-readable representation of a hashed string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00168">hashed_string.hpp:168</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a3dfc8c9301c62d82add17de1cb4ffc7c"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a3dfc8c9301c62d82add17de1cb4ffc7c">entt::basic_hashed_string::value</a></div><div class="ttdeci">constexpr hash_type value() const noexcept</div><div class="ttdoc">Returns the numeric representation of a hashed string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00176">hashed_string.hpp:176</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a8ec8a507ee512e130842834ac57a20b1"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a8ec8a507ee512e130842834ac57a20b1">entt::basic_hashed_string::basic_hashed_string</a></div><div class="ttdeci">constexpr basic_hashed_string(const value_type(&curr)[N]) noexcept</div><div class="ttdoc">Constructs a hashed string from an array of const characters.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00151">hashed_string.hpp:151</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_ad9accc71a383509ada028f7fa2b767bf"><div class="ttname"><a href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">entt::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00227">hashed_string.hpp:227</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_af73ccc8ea097392a5ca14d1d8dfc13f0"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#af73ccc8ea097392a5ca14d1d8dfc13f0">entt::basic_hashed_string::basic_hashed_string</a></div><div class="ttdeci">constexpr basic_hashed_string(const_wrapper wrapper) noexcept</div><div class="ttdoc">Explicit constructor on purpose to avoid constructing a hashed string directly from a const value_typ...</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00160">hashed_string.hpp:160</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a3221623cd9ea8247dfe3512a40f7fb8a"><div class="ttname"><a href="namespaceentt.html#a3221623cd9ea8247dfe3512a40f7fb8a">entt::basic_hashed_string</a></div><div class="ttdeci">basic_hashed_string(const Char(&str)[N]) noexcept -> basic_hashed_string< Char ></div><div class="ttdoc">Deduction guide.</div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a1631b1f6ecd56a451366eeb228a6ffb9"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a1631b1f6ecd56a451366eeb228a6ffb9">entt::basic_hashed_string::hash_type</a></div><div class="ttdeci">id_type hash_type</div><div class="ttdoc">Unsigned integer type.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00088">hashed_string.hpp:88</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a7ccb9802c4f1077537df9b56e33e1f46"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a7ccb9802c4f1077537df9b56e33e1f46">entt::basic_hashed_string::value</a></div><div class="ttdeci">static hash_type value(const value_type *str, std::size_t size) ENTT_NOEXCEPT</div><div class="ttdoc">Returns directly the numeric representation of a string view.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00125">hashed_string.hpp:125</a></div></div>
|
||||
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_a4e3866531b504f05e804273188f1c0c0"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#a4e3866531b504f05e804273188f1c0c0">entt::basic_hashed_string::value</a></div><div class="ttdeci">static constexpr hash_type value(const value_type(&str)[N]) noexcept</div><div class="ttdoc">Returns directly the numeric representation of a string.</div><div class="ttdef"><b>Definition:</b> <a href="hashed__string_8hpp_source.html#l00106">hashed_string.hpp:106</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.png" alt="doxygen"/>
|
||||
</a> 1.8.17
|
||||
</a> 1.8.18
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user