<!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: sigorderrules.hh 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>sigorderrules.hh File Reference</h1><code>#include "<a class="el" href="signals_8hh_source.html">signals.hh</a>"</code><br/> <div class="dynheader"> Include dependency graph for sigorderrules.hh:</div> <div class="dynsection"> </div> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> </div> <p><a href="sigorderrules_8hh_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">int </td><td class="memItemRight" valign="bottom"><a class="el" href="sigorderrules_8hh.html#a20942fac53773f763795775cfdcfb086">getSigOrder</a> (<a class="el" href="classCTree.html">Tree</a> sig)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">retrieve the order annotation (between 0 and 3) of a signal. <a href="#a20942fac53773f763795775cfdcfb086"></a><br/></td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a20942fac53773f763795775cfdcfb086"></a><!-- doxytag: member="sigorderrules.hh::getSigOrder" ref="a20942fac53773f763795775cfdcfb086" args="(Tree sig)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int getSigOrder </td> <td>(</td> <td class="paramtype"><a class="el" href="classCTree.html">Tree</a> </td> <td class="paramname"> <em>sig</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>retrieve the order annotation (between 0 and 3) of a signal. </p> <p>(compute the order the first time). Orders have the following meanings 0 : numbers 1 : constants 2 : user interface values 3 : audio values </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>sig</em> </td><td>the signal we want to know the order </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the order number </dd></dl> <p>Definition at line <a class="el" href="sigorderrules_8cpp_source.html#l00062">62</a> of file <a class="el" href="sigorderrules_8cpp_source.html">sigorderrules.cpp</a>.</p> <p>References <a class="el" href="list_8cpp_source.html#l00423">getProperty()</a>, <a class="el" href="sigorderrules_8cpp_source.html#l00084">infereSigOrder()</a>, <a class="el" href="list_8cpp_source.html#l00418">setProperty()</a>, <a class="el" href="tree_8hh_source.html#l00173">tree()</a>, and <a class="el" href="tree_8cpp_source.html#l00244">tree2int()</a>.</p> <p>Referenced by <a class="el" href="mterm_8cpp_source.html#l00064">mterm::complexity()</a>, <a class="el" href="mterm_8cpp_source.html#l00391">mterm::normalizedTree()</a>, <a class="el" href="aterm_8cpp_source.html#l00059">aterm::normalizedTree()</a>, and <a class="el" href="normalize_8cpp_source.html#l00081">normalizeFixedDelayTerm()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00063"></a>00063 { <a name="l00064"></a>00064 <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> tt; <a name="l00065"></a>00065 <span class="keywordflow">if</span> (<a class="code" href="list_8cpp.html#a665745948013d012bb123e9577c094bd">getProperty</a>(sig, <a class="code" href="sigorderrules_8cpp.html#a4831df6a207c7f0b14702106844d88a5">ORDERPROP</a>, tt)) { <a name="l00066"></a>00066 <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a523bce65e2a281fe678f2362496061cf" title="if t has a node of type int, return it otherwise error">tree2int</a>(tt); <a name="l00067"></a>00067 } <span class="keywordflow">else</span> { <a name="l00068"></a>00068 <span class="keywordtype">int</span> order = <a class="code" href="sigorderrules_8cpp.html#a88c56ff370235b402e14543deca129c2" title="Infere the order of a term according to its components.">infereSigOrder</a>(sig); <a name="l00069"></a>00069 <a class="code" href="list_8cpp.html#a5ead5a3e91af18d8f94e0974990a3c5a">setProperty</a>(sig, <a class="code" href="sigorderrules_8cpp.html#a4831df6a207c7f0b14702106844d88a5">ORDERPROP</a>, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(order)); <a name="l00070"></a>00070 <span class="keywordflow">return</span> order; <a name="l00071"></a>00071 } <a name="l00072"></a>00072 } </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> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:14 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>