API reference v3.2.2

This commit is contained in:
Michele Caini
2019-12-19 15:16:07 +01:00
parent 839e6e4c56
commit 765271fe1b
778 changed files with 18987 additions and 8059 deletions
+121 -114
View File
@@ -1,9 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EnTT: entt::basic_hashed_string&lt; Char &gt; Class Template Reference</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
&#160;<span id="projectnumber">3.2.1</span>
&#160;<span id="projectnumber">3.2.2</span>
</div>
</td>
</tr>
@@ -30,18 +30,21 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
@@ -98,38 +101,38 @@ constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href=
<tr class="separator:a2c75763872c028b062701523e0314f29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac422f04d11c1e5573f04809c1e1c106"><td class="memTemplParams" colspan="2">template&lt;std::size_t N&gt; </td></tr>
<tr class="memitem:aac422f04d11c1e5573f04809c1e1c106"><td class="memTemplItemLeft" align="right" valign="top">constexpr&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#aac422f04d11c1e5573f04809c1e1c106">basic_hashed_string</a> (const <a class="el" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a>(&amp;curr)[N]) ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:aac422f04d11c1e5573f04809c1e1c106"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a hashed string from an array of const characters. <a href="#aac422f04d11c1e5573f04809c1e1c106">More...</a><br /></td></tr>
<tr class="memdesc:aac422f04d11c1e5573f04809c1e1c106"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a hashed string from an array of const characters. <a href="classentt_1_1basic__hashed__string.html#aac422f04d11c1e5573f04809c1e1c106">More...</a><br /></td></tr>
<tr class="separator:aac422f04d11c1e5573f04809c1e1c106"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ab5e09f3e552436872bcaaf9ca2c1ac"><td class="memItemLeft" align="right" valign="top">constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#a7ab5e09f3e552436872bcaaf9ca2c1ac">basic_hashed_string</a> (const_wrapper wrapper) ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:a7ab5e09f3e552436872bcaaf9ca2c1ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicit constructor on purpose to avoid constructing a hashed string directly from a <code>const value_type *</code>. <a href="#a7ab5e09f3e552436872bcaaf9ca2c1ac">More...</a><br /></td></tr>
<tr class="memdesc:a7ab5e09f3e552436872bcaaf9ca2c1ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicit constructor on purpose to avoid constructing a hashed string directly from a <code>const value_type *</code>. <a href="classentt_1_1basic__hashed__string.html#a7ab5e09f3e552436872bcaaf9ca2c1ac">More...</a><br /></td></tr>
<tr class="separator:a7ab5e09f3e552436872bcaaf9ca2c1ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ef3ad96865551846e584780146d3d24"><td class="memItemLeft" align="right" valign="top">constexpr const <a class="el" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#a7ef3ad96865551846e584780146d3d24">data</a> () const ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:a7ef3ad96865551846e584780146d3d24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the human-readable representation of a hashed string. <a href="#a7ef3ad96865551846e584780146d3d24">More...</a><br /></td></tr>
<tr class="memdesc:a7ef3ad96865551846e584780146d3d24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the human-readable representation of a hashed string. <a href="classentt_1_1basic__hashed__string.html#a7ef3ad96865551846e584780146d3d24">More...</a><br /></td></tr>
<tr class="separator:a7ef3ad96865551846e584780146d3d24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb3a92282e81fb50af66953f39671f3c"><td class="memItemLeft" align="right" valign="top">constexpr <a class="el" href="classentt_1_1basic__hashed__string.html#a7ee7dca5383cf4507949dc1261ca5efd">hash_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">value</a> () const ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:afb3a92282e81fb50af66953f39671f3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the numeric representation of a hashed string. <a href="#afb3a92282e81fb50af66953f39671f3c">More...</a><br /></td></tr>
<tr class="memdesc:afb3a92282e81fb50af66953f39671f3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the numeric representation of a hashed string. <a href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">More...</a><br /></td></tr>
<tr class="separator:afb3a92282e81fb50af66953f39671f3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0cc0b27f0dd52a07e25f5014ba426fc"><td class="memItemLeft" align="right" valign="top">constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#ad0cc0b27f0dd52a07e25f5014ba426fc">operator const value_type *</a> () const ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:ad0cc0b27f0dd52a07e25f5014ba426fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the human-readable representation of a hashed string. <a href="#ad0cc0b27f0dd52a07e25f5014ba426fc">More...</a><br /></td></tr>
<tr class="memdesc:ad0cc0b27f0dd52a07e25f5014ba426fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the human-readable representation of a hashed string. <a href="classentt_1_1basic__hashed__string.html#ad0cc0b27f0dd52a07e25f5014ba426fc">More...</a><br /></td></tr>
<tr class="separator:ad0cc0b27f0dd52a07e25f5014ba426fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2009a1ac648d8bdaeac642a6476f2bd"><td class="memItemLeft" align="right" valign="top">constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#aa2009a1ac648d8bdaeac642a6476f2bd">operator hash_type</a> () const ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:aa2009a1ac648d8bdaeac642a6476f2bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the numeric representation of a hashed string. <a href="#aa2009a1ac648d8bdaeac642a6476f2bd">More...</a><br /></td></tr>
<tr class="memdesc:aa2009a1ac648d8bdaeac642a6476f2bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the numeric representation of a hashed string. <a href="classentt_1_1basic__hashed__string.html#aa2009a1ac648d8bdaeac642a6476f2bd">More...</a><br /></td></tr>
<tr class="separator:aa2009a1ac648d8bdaeac642a6476f2bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51311d6903443296ce076536df2b46da"><td class="memItemLeft" align="right" valign="top">constexpr bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#a51311d6903443296ce076536df2b46da">operator==</a> (const <a class="el" href="classentt_1_1basic__hashed__string.html">basic_hashed_string</a> &amp;other) const ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:a51311d6903443296ce076536df2b46da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two hashed strings. <a href="#a51311d6903443296ce076536df2b46da">More...</a><br /></td></tr>
<tr class="memdesc:a51311d6903443296ce076536df2b46da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two hashed strings. <a href="classentt_1_1basic__hashed__string.html#a51311d6903443296ce076536df2b46da">More...</a><br /></td></tr>
<tr class="separator:a51311d6903443296ce076536df2b46da"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa23b06fa1dbca8f703a2251c5191c200"><td class="memTemplParams" colspan="2">template&lt;std::size_t N&gt; </td></tr>
<tr class="memitem:aa23b06fa1dbca8f703a2251c5191c200"><td class="memTemplItemLeft" align="right" valign="top">static constexpr <a class="el" href="classentt_1_1basic__hashed__string.html#a7ee7dca5383cf4507949dc1261ca5efd">hash_type</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#aa23b06fa1dbca8f703a2251c5191c200">to_value</a> (const <a class="el" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a>(&amp;str)[N]) ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:aa23b06fa1dbca8f703a2251c5191c200"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns directly the numeric representation of a string. <a href="#aa23b06fa1dbca8f703a2251c5191c200">More...</a><br /></td></tr>
<tr class="memdesc:aa23b06fa1dbca8f703a2251c5191c200"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns directly the numeric representation of a string. <a href="classentt_1_1basic__hashed__string.html#aa23b06fa1dbca8f703a2251c5191c200">More...</a><br /></td></tr>
<tr class="separator:aa23b06fa1dbca8f703a2251c5191c200"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a750c547ce546aaee2f532db7020f3361"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classentt_1_1basic__hashed__string.html#a7ee7dca5383cf4507949dc1261ca5efd">hash_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#a750c547ce546aaee2f532db7020f3361">to_value</a> (const_wrapper wrapper) ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:a750c547ce546aaee2f532db7020f3361"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns directly the numeric representation of a string. <a href="#a750c547ce546aaee2f532db7020f3361">More...</a><br /></td></tr>
<tr class="memdesc:a750c547ce546aaee2f532db7020f3361"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns directly the numeric representation of a string. <a href="classentt_1_1basic__hashed__string.html#a750c547ce546aaee2f532db7020f3361">More...</a><br /></td></tr>
<tr class="separator:a750c547ce546aaee2f532db7020f3361"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4f3066c3753c41634c1f198f4fe6512"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classentt_1_1basic__hashed__string.html#a7ee7dca5383cf4507949dc1261ca5efd">hash_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classentt_1_1basic__hashed__string.html#aa4f3066c3753c41634c1f198f4fe6512">to_value</a> (const <a class="el" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a> *str, std::size_t size) ENTT_NOEXCEPT</td></tr>
<tr class="memdesc:aa4f3066c3753c41634c1f198f4fe6512"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns directly the numeric representation of a string view. <a href="#aa4f3066c3753c41634c1f198f4fe6512">More...</a><br /></td></tr>
<tr class="memdesc:aa4f3066c3753c41634c1f198f4fe6512"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns directly the numeric representation of a string view. <a href="classentt_1_1basic__hashed__string.html#aa4f3066c3753c41634c1f198f4fe6512">More...</a><br /></td></tr>
<tr class="separator:aa4f3066c3753c41634c1f198f4fe6512"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
@@ -137,7 +140,7 @@ Static Public Member Functions</h2></td></tr>
class entt::basic_hashed_string&lt; Char &gt;</h3>
<p>Zero overhead unique identifier. </p>
<p>TURN_OFF_DOXYGEN A hashed string is a compile-time tool that allows users to use human-readable identifers in the codebase while using their numeric counterparts at runtime.<br />
<p>TURN_OFF_DOXYGEN A hashed string is a compile-time tool that allows users to use human-readable identifers in the codebase while using their numeric counterparts at runtime.<br />
Because of that, a hashed string can also be used in constant expressions if required.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
@@ -171,14 +174,15 @@ template&lt;std::size_t N&gt; </div>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a hashed string from an array of const characters. </p>
<p>Forcing template resolution avoids implicit conversions. An human-readable identifier can be anything but a plain, old bunch of characters.<br />
Example of use: </p><div class="fragment"><div class="line">basic_hashed_string&lt;char&gt; hs{<span class="stringliteral">&quot;my.png&quot;</span>};</div></div><!-- fragment --><dl class="tparams"><dt>Template Parameters</dt><dd>
<p>Forcing template resolution avoids implicit conversions. An human-readable identifier can be anything but a plain, old bunch of characters.<br />
Example of use: </p><div class="fragment"><div class="line">basic_hashed_string&lt;char&gt; hs{<span class="stringliteral">&quot;my.png&quot;</span>};</div>
</div><!-- fragment --><dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">N</td><td>Number of characters of the identifier. </td></tr>
</table>
@@ -216,7 +220,7 @@ template&lt;typename Char&gt; </div>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
@@ -254,7 +258,7 @@ template&lt;typename Char&gt; </div>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
@@ -286,7 +290,7 @@ template&lt;typename Char&gt; </div>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
@@ -318,7 +322,7 @@ template&lt;typename Char&gt; </div>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
@@ -351,7 +355,7 @@ template&lt;typename Char&gt; </div>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
@@ -367,97 +371,10 @@ template&lt;typename Char&gt; </div>
<p class="definition">Definition at line <a class="el" href="hashed__string_8hpp_source.html#l00184">184</a> of file <a class="el" href="hashed__string_8hpp_source.html">hashed_string.hpp</a>.</p>
</div>
</div>
<a id="aa23b06fa1dbca8f703a2251c5191c200"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa23b06fa1dbca8f703a2251c5191c200">&#9670;&nbsp;</a></span>to_value() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char&gt; </div>
<div class="memtemplate">
template&lt;std::size_t N&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static constexpr <a class="el" href="classentt_1_1basic__hashed__string.html#a7ee7dca5383cf4507949dc1261ca5efd">hash_type</a> <a class="el" href="classentt_1_1basic__hashed__string.html">entt::basic_hashed_string</a>&lt; Char &gt;::to_value </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a>(&amp;)&#160;</td>
<td class="paramname"><em>str</em>[N]</td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns directly the numeric representation of a string. </p>
<p>Forcing template resolution avoids implicit conversions. An human-readable identifier can be anything but a plain, old bunch of characters.<br />
Example of use: </p><div class="fragment"><div class="line"><span class="keyword">const</span> <span class="keyword">auto</span> value = <a class="code" href="classentt_1_1basic__hashed__string.html#aa23b06fa1dbca8f703a2251c5191c200">basic_hashed_string&lt;char&gt;::to_value</a>(<span class="stringliteral">&quot;my.png&quot;</span>);</div></div><!-- fragment --><dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">N</td><td>Number of characters of the identifier. </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">str</td><td>Human-readable identifer. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The numeric representation of the string. </dd></dl>
<p class="definition">Definition at line <a class="el" href="hashed__string_8hpp_source.html#l00096">96</a> of file <a class="el" href="hashed__string_8hpp_source.html">hashed_string.hpp</a>.</p>
</div>
</div>
<a id="a750c547ce546aaee2f532db7020f3361"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a750c547ce546aaee2f532db7020f3361">&#9670;&nbsp;</a></span>to_value() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classentt_1_1basic__hashed__string.html#a7ee7dca5383cf4507949dc1261ca5efd">hash_type</a> <a class="el" href="classentt_1_1basic__hashed__string.html">entt::basic_hashed_string</a>&lt; Char &gt;::to_value </td>
<td>(</td>
<td class="paramtype">const_wrapper&#160;</td>
<td class="paramname"><em>wrapper</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns directly the numeric representation of a string. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">wrapper</td><td>Helps achieving the purpose by relying on overloading. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The numeric representation of the string. </dd></dl>
<p class="definition">Definition at line <a class="el" href="hashed__string_8hpp_source.html#l00105">105</a> of file <a class="el" href="hashed__string_8hpp_source.html">hashed_string.hpp</a>.</p>
</div>
</div>
<a id="aa4f3066c3753c41634c1f198f4fe6512"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4f3066c3753c41634c1f198f4fe6512">&#9670;&nbsp;</a></span>to_value() <span class="overload">[3/3]</span></h2>
<h2 class="memtitle"><span class="permalink"><a href="#aa4f3066c3753c41634c1f198f4fe6512">&#9670;&nbsp;</a></span>to_value() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
@@ -504,6 +421,94 @@ template&lt;typename Char&gt; </div>
<p class="definition">Definition at line <a class="el" href="hashed__string_8hpp_source.html#l00115">115</a> of file <a class="el" href="hashed__string_8hpp_source.html">hashed_string.hpp</a>.</p>
</div>
</div>
<a id="aa23b06fa1dbca8f703a2251c5191c200"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa23b06fa1dbca8f703a2251c5191c200">&#9670;&nbsp;</a></span>to_value() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char&gt; </div>
<div class="memtemplate">
template&lt;std::size_t N&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static constexpr <a class="el" href="classentt_1_1basic__hashed__string.html#a7ee7dca5383cf4507949dc1261ca5efd">hash_type</a> <a class="el" href="classentt_1_1basic__hashed__string.html">entt::basic_hashed_string</a>&lt; Char &gt;::to_value </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classentt_1_1basic__hashed__string.html#ad4e8f181e92b9218747ac43fe24c4cbc">value_type</a>(&amp;)&#160;</td>
<td class="paramname"><em>str</em>[N]</td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns directly the numeric representation of a string. </p>
<p>Forcing template resolution avoids implicit conversions. An human-readable identifier can be anything but a plain, old bunch of characters.<br />
Example of use: </p><div class="fragment"><div class="line"><span class="keyword">const</span> <span class="keyword">auto</span> <a class="code" href="classentt_1_1basic__hashed__string.html#afb3a92282e81fb50af66953f39671f3c">value</a> = <a class="code" href="classentt_1_1basic__hashed__string.html#aa23b06fa1dbca8f703a2251c5191c200">basic_hashed_string&lt;char&gt;::to_value</a>(<span class="stringliteral">&quot;my.png&quot;</span>);</div>
</div><!-- fragment --><dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">N</td><td>Number of characters of the identifier. </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">str</td><td>Human-readable identifer. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The numeric representation of the string. </dd></dl>
<p class="definition">Definition at line <a class="el" href="hashed__string_8hpp_source.html#l00096">96</a> of file <a class="el" href="hashed__string_8hpp_source.html">hashed_string.hpp</a>.</p>
</div>
</div>
<a id="a750c547ce546aaee2f532db7020f3361"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a750c547ce546aaee2f532db7020f3361">&#9670;&nbsp;</a></span>to_value() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classentt_1_1basic__hashed__string.html#a7ee7dca5383cf4507949dc1261ca5efd">hash_type</a> <a class="el" href="classentt_1_1basic__hashed__string.html">entt::basic_hashed_string</a>&lt; Char &gt;::to_value </td>
<td>(</td>
<td class="paramtype">const_wrapper&#160;</td>
<td class="paramname"><em>wrapper</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns directly the numeric representation of a string. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">wrapper</td><td>Helps achieving the purpose by relying on overloading. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The numeric representation of the string. </dd></dl>
<p class="definition">Definition at line <a class="el" href="hashed__string_8hpp_source.html#l00105">105</a> of file <a class="el" href="hashed__string_8hpp_source.html">hashed_string.hpp</a>.</p>
</div>
</div>
<a id="afb3a92282e81fb50af66953f39671f3c"></a>
@@ -526,7 +531,7 @@ template&lt;typename Char&gt; </div>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
@@ -542,11 +547,13 @@ template&lt;typename Char&gt; </div>
<li>src/entt/core/<a class="el" href="hashed__string_8hpp_source.html">hashed_string.hpp</a></li>
</ul>
</div><!-- contents -->
<div class="ttc" id="aclassentt_1_1basic__hashed__string_html_aa23b06fa1dbca8f703a2251c5191c200"><div class="ttname"><a href="classentt_1_1basic__hashed__string.html#aa23b06fa1dbca8f703a2251c5191c200">entt::basic_hashed_string::to_value</a></div><div class="ttdeci">static constexpr hash_type to_value(const value_type(&amp;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#l00096">hashed_string.hpp:96</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#l00166">hashed_string.hpp:166</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</a> 1.8.16
</small></address>
</body>
</html>