aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02415.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02415.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a02415.html')
-rw-r--r--docs/doxygen/nel/a02415.html335
1 files changed, 335 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02415.html b/docs/doxygen/nel/a02415.html
new file mode 100644
index 00000000..c3497c2e
--- /dev/null
+++ b/docs/doxygen/nel/a02415.html
@@ -0,0 +1,335 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: TemplateNLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt; struct Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt; Struct Template Reference</h1><code>#include &lt;<a class="el" href="a05612.html">context_sound.h</a>&gt;</code>
+<p>
+<h3>template&lt;uint NbJoker, bool UseRandom, uint Shift = 5&gt;<br>
+ struct NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;</h3>
+
+<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom>{ <a class="el" href="a02415.html#NLSOUND_1_1CContextMatcherw0NLSOUND_1_1CContextMatcherw1">JOKER_ARRAY_SIZE</a> = (NbJoker == 0 ? 1 : NbJoker)
+ }</td></tr>
+
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02415.html#NLSOUND_1_1CContextMatchera0">CContextMatcher</a> (<a class="el" href="a04558.html#a11">uint32</a> *jokersValues, <a class="el" href="a04558.html#a11">uint32</a> randomValue)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>size_t&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02415.html#NLSOUND_1_1CContextMatchera1">getHashValue</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02415.html#NLSOUND_1_1CContextMatchera2">operator==</a> (const <a class="el" href="a02415.html">CContextMatcher</a> &amp;other) const </td></tr>
+
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02415.html#NLSOUND_1_1CContextMatchero1">JokersValues</a> [JOKER_ARRAY_SIZE]</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02415.html#NLSOUND_1_1CContextMatchero2">RandomValue</a></td></tr>
+
+</table>
+<hr><h2>Member Enumeration Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CContextMatcherw0" doxytag="NLSOUND::CContextMatcher::@59" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" colspan="4">
+template&lt;uint NbJoker, bool UseRandom, uint Shift = 5&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> anonymous enum
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<dl compact><dt><b>Enumeration values: </b></dt><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em><a class="anchor" name="NLSOUND_1_1CContextMatcherw0NLSOUND_1_1CContextMatcherw1" doxytag="JOKER_ARRAY_SIZE" ></a>JOKER_ARRAY_SIZE</em>&nbsp;</td><td>
+</td></tr>
+</table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a05612.html#l00043">43</a> of file <a class="el" href="a05612.html">context_sound.h</a>.
+<p>
+<div class="fragment"><pre>00044 {
+00045 <span class="comment">// Size of array : special case for 0 joker because we can't declare array of 0 elements</span>
+00046 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatcherw0NLSOUND_1_1CContextMatcherw1">JOKER_ARRAY_SIZE</a> = (NbJoker == 0 ? 1 : NbJoker)
+00047 };
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CContextMatchera0" doxytag="NLSOUND::CContextMatcher::CContextMatcher" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" colspan="4">
+template&lt;uint NbJoker, bool UseRandom, uint Shift = 5&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>&lt; NbJoker, UseRandom, Shift &gt;::<a class="el" href="a02415.html">CContextMatcher</a> </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>jokersValues</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>randomValue</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05612.html#l00049">49</a> of file <a class="el" href="a05612.html">context_sound.h</a>.
+<p>
+References <a class="el" href="a05612.html#l00087">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::HashValue</a>, <a class="el" href="a05612.html#l00088">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::JokersValues</a>, <a class="el" href="a05612.html#l00089">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::RandomValue</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00050 : <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a>(0)
+00051 {
+00052 <a class="code" href="a04558.html#a15">uint</a> i;
+00053 <span class="keywordflow">for</span> (i=0; i&lt;NbJoker; ++i)
+00054 {
+00055 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero1">JokersValues</a>[i] = jokersValues[i];
+00056
+00057 <a class="code" href="a04558.html#a15">uint</a> leftShift = (5*i)&amp;0x1f;
+00058 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> ^= <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero1">JokersValues</a>[i] &lt;&lt; leftShift;
+00059 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> ^= JokersValues[i] &gt;&gt; (32-leftShift);
+00060 }
+00061 <span class="keywordflow">if</span> (UseRandom)
+00062 {
+00063 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero2">RandomValue</a> = randomValue;
+00064 <a class="code" href="a04558.html#a15">uint</a> leftShift = (5*i)&amp;0x1f;
+00065 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> ^= randomValue &lt;&lt; leftShift;
+00066 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> ^= randomValue &gt;&gt; (32-leftShift);
+00067 }
+00068 <span class="keywordflow">else</span>
+00069 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero2">RandomValue</a> = 0;
+00070 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CContextMatchera1" doxytag="NLSOUND::CContextMatcher::getHashValue" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" colspan="4">
+template&lt;uint NbJoker, bool UseRandom, uint Shift = 5&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> size_t <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>&lt; NbJoker, UseRandom, Shift &gt;::getHashValue </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05612.html#l00082">82</a> of file <a class="el" href="a05612.html">context_sound.h</a>.
+<p>
+References <a class="el" href="a05612.html#l00087">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::HashValue</a>.
+<p>
+Referenced by <a class="el" href="a05612.html#l00093">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::CHash::operator()()</a>.
+<p>
+<div class="fragment"><pre>00083 {
+00084 <span class="keywordflow">return</span> size_t(HashValue);
+00085 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CContextMatchera2" doxytag="NLSOUND::CContextMatcher::operator==" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" colspan="4">
+template&lt;uint NbJoker, bool UseRandom, uint Shift = 5&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> bool <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>&lt; NbJoker, UseRandom, Shift &gt;::operator== </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02415.html">CContextMatcher</a>&lt; NbJoker, UseRandom, Shift &gt; &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>other</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05612.html#l00072">72</a> of file <a class="el" href="a05612.html">context_sound.h</a>.
+<p>
+References <a class="el" href="a05612.html#l00087">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::HashValue</a>, <a class="el" href="a05612.html#l00088">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::JokersValues</a>, <a class="el" href="a05612.html#l00089">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::RandomValue</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00073 {
+00074 <span class="keywordflow">if</span> (<a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> != other.HashValue)
+00075 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00076 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (UseRandom)
+00077 <span class="keywordflow">return</span> <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero2">RandomValue</a> == other.RandomValue &amp;&amp; memcmp(JokersValues, other.JokersValues, <span class="keyword">sizeof</span>(<a class="code" href="a04558.html#a11">uint32</a>)*NbJoker) == 0;
+00078 <span class="keywordflow">else</span>
+00079 <span class="keywordflow">return</span> memcmp(JokersValues, other.JokersValues, <span class="keyword">sizeof</span>(<a class="code" href="a04558.html#a11">uint32</a>)*NbJoker) == 0;
+00080 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CContextMatchero0" doxytag="NLSOUND::CContextMatcher::HashValue" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" colspan="4">
+template&lt;uint NbJoker, bool UseRandom, uint Shift = 5&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>&lt; NbJoker, UseRandom, Shift &gt;::<a class="el" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05612.html#l00087">87</a> of file <a class="el" href="a05612.html">context_sound.h</a>.
+<p>
+Referenced by <a class="el" href="a05612.html#l00049">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::CContextMatcher()</a>, <a class="el" href="a05612.html#l00082">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::getHashValue()</a>, and <a class="el" href="a05612.html#l00072">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::operator==()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CContextMatchero1" doxytag="NLSOUND::CContextMatcher::JokersValues" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" colspan="4">
+template&lt;uint NbJoker, bool UseRandom, uint Shift = 5&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>&lt; NbJoker, UseRandom, Shift &gt;::<a class="el" href="a02415.html#NLSOUND_1_1CContextMatchero1">JokersValues</a>[JOKER_ARRAY_SIZE]
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05612.html#l00088">88</a> of file <a class="el" href="a05612.html">context_sound.h</a>.
+<p>
+Referenced by <a class="el" href="a05612.html#l00049">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::CContextMatcher()</a>, and <a class="el" href="a05612.html#l00072">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::operator==()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CContextMatchero2" doxytag="NLSOUND::CContextMatcher::RandomValue" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" colspan="4">
+template&lt;uint NbJoker, bool UseRandom, uint Shift = 5&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>&lt; NbJoker, UseRandom, Shift &gt;::<a class="el" href="a02415.html#NLSOUND_1_1CContextMatchero2">RandomValue</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05612.html#l00089">89</a> of file <a class="el" href="a05612.html">context_sound.h</a>.
+<p>
+Referenced by <a class="el" href="a05612.html#l00049">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::CContextMatcher()</a>, and <a class="el" href="a05612.html#l00072">NLSOUND::CContextMatcher&lt; NbJoker, UseRandom, Shift &gt;::operator==()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this struct was generated from the following file:<ul>
+<li><a class="el" href="a05612.html">context_sound.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:37:18 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>