diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02415.html | 335 |
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< NbJoker, UseRandom, Shift > 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift > Struct Template Reference</h1><code>#include <<a class="el" href="a05612.html">context_sound.h</a>></code> +<p> +<h3>template<uint NbJoker, bool UseRandom, uint Shift = 5><br> + struct NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift ></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 </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> </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 </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 </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> &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> </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> </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> </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<uint NbJoker, bool UseRandom, uint Shift = 5> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> anonymous enum + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> </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 & 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<uint NbJoker, bool UseRandom, uint Shift = 5> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>< NbJoker, UseRandom, Shift >::<a class="el" href="a02415.html">CContextMatcher</a> </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> * </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> </td> + <td class="mdname" nowrap> <em>randomValue</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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< NbJoker, UseRandom, Shift >::HashValue</a>, <a class="el" href="a05612.html#l00088">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::JokersValues</a>, <a class="el" href="a05612.html#l00089">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::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<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)&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] << leftShift; +00059 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> ^= JokersValues[i] >> (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)&0x1f; +00065 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> ^= randomValue << leftShift; +00066 <a class="code" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> ^= randomValue >> (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<uint NbJoker, bool UseRandom, uint Shift = 5> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> size_t <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>< NbJoker, UseRandom, Shift >::getHashValue </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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< NbJoker, UseRandom, Shift >::HashValue</a>. +<p> +Referenced by <a class="el" href="a05612.html#l00093">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::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<uint NbJoker, bool UseRandom, uint Shift = 5> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> bool <a class="el" href="a02415.html">NLSOUND::CContextMatcher</a>< NbJoker, UseRandom, Shift >::operator== </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02415.html">CContextMatcher</a>< NbJoker, UseRandom, Shift > & </td> + <td class="mdname1" valign="top" nowrap> <em>other</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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< NbJoker, UseRandom, Shift >::HashValue</a>, <a class="el" href="a05612.html#l00088">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::JokersValues</a>, <a class="el" href="a05612.html#l00089">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::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 && 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<uint NbJoker, bool UseRandom, uint Shift = 5> </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>< NbJoker, UseRandom, Shift >::<a class="el" href="a02415.html#NLSOUND_1_1CContextMatchero0">HashValue</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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< NbJoker, UseRandom, Shift >::CContextMatcher()</a>, <a class="el" href="a05612.html#l00082">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::getHashValue()</a>, and <a class="el" href="a05612.html#l00072">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::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<uint NbJoker, bool UseRandom, uint Shift = 5> </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>< NbJoker, UseRandom, Shift >::<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> + + </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< NbJoker, UseRandom, Shift >::CContextMatcher()</a>, and <a class="el" href="a05612.html#l00072">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::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<uint NbJoker, bool UseRandom, uint Shift = 5> </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>< NbJoker, UseRandom, Shift >::<a class="el" href="a02415.html#NLSOUND_1_1CContextMatchero2">RandomValue</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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< NbJoker, UseRandom, Shift >::CContextMatcher()</a>, and <a class="el" href="a05612.html#l00072">NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::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> |