<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/> <title>FAUST compiler: lateq.cpp File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>lateq.cpp File Reference</h1><code>#include <stdio.h></code><br/> <code>#include <iostream></code><br/> <code>#include <cstdlib></code><br/> <code>#include <set></code><br/> <code>#include "<a class="el" href="lateq_8hh_source.html">lateq.hh</a>"</code><br/> <code>#include "<a class="el" href="Text_8hh_source.html">Text.hh</a>"</code><br/> <div class="dynheader"> Include dependency graph for lateq.cpp:</div> <div class="dynsection"> </div> <p><a href="lateq_8cpp_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="lateq_8cpp.html#a4ab63be177e7ad01ea7ffcb5fb600546">getLateqIndex</a> (const string &s)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Find out the index of signals in LaTeX signal definition strings, between the first "_{" and "}" patterns. <a href="#a4ab63be177e7ad01ea7ffcb5fb600546"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="lateq_8cpp.html#a39ecdb3dfcfbe0d615a8c88ac53b88a2">compLateqIndexes</a> (const string &s1, const string &s2)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare indexes of two LaTeX strings, for the sort() method applied on list<string> fields. <a href="#a39ecdb3dfcfbe0d615a8c88ac53b88a2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="lateq_8cpp.html#ac7db3c039de437decc25e612c8100754">initDocMathKeySet</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize gDocMathKeySet, a set containing all the keywords. <a href="#ac7db3c039de437decc25e612c8100754"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lateq_8cpp.html#abf16eac31f0df5e1897f78d6b9b7cc84">initDocMath</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Dispatch initialization of autodoc container. <a href="#abf16eac31f0df5e1897f78d6b9b7cc84"></a><br/></td></tr> <tr><td colspan="2"><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">map< string, string > </td><td class="memItemRight" valign="bottom"><a class="el" href="lateq_8cpp.html#aa28e02b0250cd740aa42876df3b7c3e4">gDocMathStringMap</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">set< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="lateq_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a></td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a39ecdb3dfcfbe0d615a8c88ac53b88a2"></a><!-- doxytag: member="lateq.cpp::compLateqIndexes" ref="a39ecdb3dfcfbe0d615a8c88ac53b88a2" args="(const string &s1, const string &s2)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool compLateqIndexes </td> <td>(</td> <td class="paramtype">const string & </td> <td class="paramname"> <em>s1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const string & </td> <td class="paramname"> <em>s2</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Compare indexes of two LaTeX strings, for the sort() method applied on list<string> fields. </p> <p>Definition at line <a class="el" href="lateq_8cpp_source.html#l00322">322</a> of file <a class="el" href="lateq_8cpp_source.html">lateq.cpp</a>.</p> <p>References <a class="el" href="lateq_8cpp_source.html#l00335">getLateqIndex()</a>.</p> <p>Referenced by <a class="el" href="lateq_8cpp_source.html#l00077">Lateq::println()</a>, and <a class="el" href="lateq_8cpp_source.html#l00130">Lateq::printOneLine()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00323"></a>00323 { <a name="l00324"></a>00324 <span class="keywordflow">return</span> <a class="code" href="lateq_8cpp.html#a4ab63be177e7ad01ea7ffcb5fb600546" title="Find out the index of signals in LaTeX signal definition strings, between the first...">getLateqIndex</a>(s1) < <a class="code" href="lateq_8cpp.html#a4ab63be177e7ad01ea7ffcb5fb600546" title="Find out the index of signals in LaTeX signal definition strings, between the first...">getLateqIndex</a>(s2); <a name="l00325"></a>00325 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="a4ab63be177e7ad01ea7ffcb5fb600546"></a><!-- doxytag: member="lateq.cpp::getLateqIndex" ref="a4ab63be177e7ad01ea7ffcb5fb600546" args="(const string &s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int getLateqIndex </td> <td>(</td> <td class="paramtype">const string & </td> <td class="paramname"> <em>s</em></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Find out the index of signals in LaTeX signal definition strings, between the first "_{" and "}" patterns. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>s</em> </td><td>A LaTeX string to parse. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><int> The index found, as an integer. </dd></dl> <p>Definition at line <a class="el" href="lateq_8cpp_source.html#l00335">335</a> of file <a class="el" href="lateq_8cpp_source.html">lateq.cpp</a>.</p> <p>Referenced by <a class="el" href="lateq_8cpp_source.html#l00322">compLateqIndexes()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00336"></a>00336 { <a name="l00337"></a>00337 <span class="keywordtype">size_t</span> p1; <a name="l00338"></a>00338 <span class="keywordtype">size_t</span> p2; <a name="l00339"></a>00339 <span class="keywordtype">string</span> sIndex; <a name="l00340"></a>00340 <a name="l00341"></a>00341 p1 = s.find(<span class="stringliteral">"_{"</span>); <a name="l00342"></a>00342 <span class="keywordflow">if</span> (p1==string::npos) { <a name="l00343"></a>00343 cerr << <span class="stringliteral">"Error : getLateqIndex found no \"{_\" substring.\n"</span>; <a name="l00344"></a>00344 exit(1); } <a name="l00345"></a>00345 p1 += 2; <a name="l00346"></a>00346 <a name="l00347"></a>00347 p2 = s.find(<span class="stringliteral">"}"</span>, p1); <a name="l00348"></a>00348 <span class="keywordflow">if</span> (p2==string::npos) { <a name="l00349"></a>00349 cerr << <span class="stringliteral">"Error : getLateqIndex found no \"}\" substring\n."</span>; <a name="l00350"></a>00350 exit(1); } <a name="l00351"></a>00351 p2 -= 3; <a name="l00352"></a>00352 <a name="l00353"></a>00353 sIndex = s.substr (p1, p2); <a name="l00354"></a>00354 <a name="l00355"></a>00355 <span class="keywordflow">return</span> atoi(sIndex.c_str()); <a name="l00356"></a>00356 } </pre></div></p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="abf16eac31f0df5e1897f78d6b9b7cc84"></a><!-- doxytag: member="lateq.cpp::initDocMath" ref="abf16eac31f0df5e1897f78d6b9b7cc84" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void initDocMath </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Dispatch initialization of autodoc container. </p> <p>Definition at line <a class="el" href="lateq_8cpp_source.html#l00307">307</a> of file <a class="el" href="lateq_8cpp_source.html">lateq.cpp</a>.</p> <p>References <a class="el" href="lateq_8cpp_source.html#l00362">initDocMathKeySet()</a>.</p> <p>Referenced by <a class="el" href="doc__lang_8cpp_source.html#l00076">loadTranslationFile()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00308"></a>00308 { <a name="l00309"></a>00309 <a class="code" href="lateq_8cpp.html#ac7db3c039de437decc25e612c8100754" title="Initialize gDocMathKeySet, a set containing all the keywords.">initDocMathKeySet</a>(); <a name="l00310"></a>00310 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="ac7db3c039de437decc25e612c8100754"></a><!-- doxytag: member="lateq.cpp::initDocMathKeySet" ref="ac7db3c039de437decc25e612c8100754" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void initDocMathKeySet </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Initialize gDocMathKeySet, a set containing all the keywords. </p> <p>Definition at line <a class="el" href="lateq_8cpp_source.html#l00362">362</a> of file <a class="el" href="lateq_8cpp_source.html">lateq.cpp</a>.</p> <p>References <a class="el" href="lateq_8cpp_source.html#l00051">gDocMathKeySet</a>.</p> <p>Referenced by <a class="el" href="lateq_8cpp_source.html#l00307">initDocMath()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00363"></a>00363 { <a name="l00364"></a>00364 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"inputsigtitle1"</span>); <a name="l00365"></a>00365 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"inputsigtitle2"</span>); <a name="l00366"></a>00366 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"outputsigtitle1"</span>); <a name="l00367"></a>00367 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"outputsigtitle2"</span>); <a name="l00368"></a>00368 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"constsigtitle1"</span>); <a name="l00369"></a>00369 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"constsigtitle2"</span>); <a name="l00370"></a>00370 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"uisigtitle1"</span>); <a name="l00371"></a>00371 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"uisigtitle2"</span>); <a name="l00372"></a>00372 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"paramsigtitle1"</span>); <a name="l00373"></a>00373 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"paramsigtitle2"</span>); <a name="l00374"></a>00374 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"internalsigtitle1"</span>); <a name="l00375"></a>00375 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"internalsigtitle2"</span>); <a name="l00376"></a>00376 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"lateqcomment"</span>); <a name="l00377"></a>00377 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"emptyformulafield"</span>); <a name="l00378"></a>00378 <a class="code" href="doc__lang_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a>.insert(<span class="stringliteral">"defaultvalue"</span>); <a name="l00379"></a>00379 } </pre></div></p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <hr/><h2>Variable Documentation</h2> <a class="anchor" id="aba81e10741b3cf94c4e1207509071be3"></a><!-- doxytag: member="lateq.cpp::gDocMathKeySet" ref="aba81e10741b3cf94c4e1207509071be3" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">set<string> <a class="el" href="lateq_8cpp.html#aba81e10741b3cf94c4e1207509071be3">gDocMathKeySet</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lateq_8cpp_source.html#l00051">51</a> of file <a class="el" href="lateq_8cpp_source.html">lateq.cpp</a>.</p> <p>Referenced by <a class="el" href="lateq_8cpp_source.html#l00362">initDocMathKeySet()</a>, and <a class="el" href="doc__lang_8cpp_source.html#l00176">storePair()</a>.</p> </div> </div> <a class="anchor" id="aa28e02b0250cd740aa42876df3b7c3e4"></a><!-- doxytag: member="lateq.cpp::gDocMathStringMap" ref="aa28e02b0250cd740aa42876df3b7c3e4" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">map<string, string> <a class="el" href="lateq_8cpp.html#aa28e02b0250cd740aa42876df3b7c3e4">gDocMathStringMap</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lateq_8cpp_source.html#l00050">50</a> of file <a class="el" href="lateq_8cpp_source.html">lateq.cpp</a>.</p> <p>Referenced by <a class="el" href="doc__lang_8cpp_source.html#l00113">importDocStrings()</a>, <a class="el" href="doc__compile_8cpp_source.html#l01263">DocCompiler::prepareBinaryUI()</a>, <a class="el" href="doc__compile_8cpp_source.html#l01293">DocCompiler::prepareIntervallicUI()</a>, <a class="el" href="lateq_8cpp_source.html#l00077">Lateq::println()</a>, <a class="el" href="lateq_8cpp_source.html#l00130">Lateq::printOneLine()</a>, and <a class="el" href="doc__lang_8cpp_source.html#l00176">storePair()</a>.</p> </div> </div> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:07 2010 for FAUST compiler by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>