Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > aaf33964de706a538481c929c1da6a44 > files > 5849

faust-doc-0.9.10-5mdv2010.1.x86_64.rpm

<!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: signals.cpp Source File</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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>signals.cpp</h1><a href="signals_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> ************************************************************************</span>
<a name="l00003"></a>00003 <span class="comment">    FAUST compiler</span>
<a name="l00004"></a>00004 <span class="comment">    Copyright (C) 2003-2004 GRAME, Centre National de Creation Musicale</span>
<a name="l00005"></a>00005 <span class="comment">    ---------------------------------------------------------------------</span>
<a name="l00006"></a>00006 <span class="comment">    This program is free software; you can redistribute it and/or modify</span>
<a name="l00007"></a>00007 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00008"></a>00008 <span class="comment">    the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00009"></a>00009 <span class="comment">    (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"></span>
<a name="l00011"></a>00011 <span class="comment">    This program is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00014"></a>00014 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00017"></a>00017 <span class="comment">    along with this program; if not, write to the Free Software</span>
<a name="l00018"></a>00018 <span class="comment">    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00019"></a>00019 <span class="comment"> ************************************************************************</span>
<a name="l00020"></a>00020 <span class="comment"> ************************************************************************/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="comment">/*****************************************************************************</span>
<a name="l00024"></a>00024 <span class="comment">    HISTORY</span>
<a name="l00025"></a>00025 <span class="comment">    22/01/05 : added int cast in select2 and select3 selection signal</span>
<a name="l00026"></a>00026 <span class="comment">*****************************************************************************/</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;<a class="code" href="signals_8hh.html">signals.hh</a>&quot;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 
<a name="l00034"></a>00034 
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 
<a name="l00040"></a><a class="code" href="signals_8hh.html#a6d88497d37053782c2fdb271b3f4f4ed">00040</a> <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>  <a class="code" href="signals_8cpp.html#a43ce107ac086c8ef608e0cd7aeb606a4" title="Signals.">sigInt</a>(<span class="keywordtype">int</span> i)                                 { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(i);                   }
<a name="l00041"></a><a class="code" href="signals_8hh.html#a75cc925deac1e031e75ae72271dd5995">00041</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a75cc925deac1e031e75ae72271dd5995">isSigInt</a>(<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> t, <span class="keywordtype">int</span>* i)                      { <span class="keywordflow">return</span> <a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(t-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(), i);       }
<a name="l00042"></a>00042 
<a name="l00043"></a><a class="code" href="signals_8hh.html#aa0b03b462641a51f5b4db1213612411f">00043</a> <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>  <a class="code" href="signals_8cpp.html#a06d286e07f982addcce4b187e9b60374">sigReal</a>(<span class="keywordtype">double</span> r)                             { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(r);                   }
<a name="l00044"></a><a class="code" href="signals_8hh.html#a305497ed8593020624204f9d359743f2">00044</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a305497ed8593020624204f9d359743f2">isSigReal</a>(<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> t, <span class="keywordtype">double</span>* r)                  { <span class="keywordflow">return</span> <a class="code" href="node_8hh.html#aab6c20fb5dce797e97ac8ec8591258af">isDouble</a>(t-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(), r);    }
<a name="l00045"></a>00045 
<a name="l00046"></a><a class="code" href="signals_8cpp.html#a19a3c3a2a54328c2c1b0d1e3c12bbb30">00046</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a19a3c3a2a54328c2c1b0d1e3c12bbb30">SIGINPUT</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigInput&quot;</span>);
<a name="l00047"></a><a class="code" href="signals_8hh.html#ae3a5a7f9252911027be0d0293fb33822">00047</a> <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>  <a class="code" href="signals_8cpp.html#ae3a5a7f9252911027be0d0293fb33822">sigInput</a>(<span class="keywordtype">int</span> i)                               { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGINPUT, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(i));   }
<a name="l00048"></a><a class="code" href="signals_8hh.html#a38254d67a0541d98c6097fd51b22ea45">00048</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a38254d67a0541d98c6097fd51b22ea45">isSigInput</a>(<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> t, <span class="keywordtype">int</span>* i)                    { <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> x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGINPUT, x) &amp;&amp; <a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(x-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),i);  }
<a name="l00049"></a>00049 
<a name="l00050"></a><a class="code" href="signals_8cpp.html#a944cf7be517740c4e0159714fed8ffdc">00050</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a944cf7be517740c4e0159714fed8ffdc">SIGOUTPUT</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigOutput&quot;</span>);
<a name="l00051"></a><a class="code" href="signals_8hh.html#a2b8d6cfbf3091cc35766a4a609bb6833">00051</a> <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>  <a class="code" href="signals_8cpp.html#a91568b329a7d0ca487324592ad1fe7ef">sigOutput</a>(<span class="keywordtype">int</span> i, <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> t0)                     { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGOUTPUT, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(i), t0);  }
<a name="l00052"></a><a class="code" href="signals_8hh.html#a1415deb58619ab50a536d7f2ce425f22">00052</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a1415deb58619ab50a536d7f2ce425f22">isSigOutput</a>(<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> t, <span class="keywordtype">int</span>* i, <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>&amp; t0)         { <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> x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGOUTPUT, x, t0) &amp;&amp; <a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(x-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),i);     }
<a name="l00053"></a>00053 
<a name="l00054"></a><a class="code" href="signals_8cpp.html#a1701cf3d1bb3cac65f7e32a153a1d892">00054</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a1701cf3d1bb3cac65f7e32a153a1d892">SIGDELAY1</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigDelay1&quot;</span>);
<a name="l00055"></a><a class="code" href="signals_8hh.html#a9bb06df3aaf39702cc854911e7398882">00055</a> <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>  <a class="code" href="signals_8cpp.html#a7aa37ff66e3460409ea9bebd5c3c0e19">sigDelay0</a>(<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> t0)                            { <span class="keywordflow">return</span> <a class="code" href="signals_8cpp.html#ae4887b59dd1461bfacc431147c78ebb8">sigFixDelay</a>(t0, <a class="code" href="signals_8cpp.html#a43ce107ac086c8ef608e0cd7aeb606a4" title="Signals.">sigInt</a>(0));}
<a name="l00056"></a>00056 
<a name="l00057"></a><a class="code" href="signals_8hh.html#a484b012ea408b5a2e8d875363c6fd49d">00057</a> <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>  <a class="code" href="signals_8cpp.html#aa329e904f79949f635b5e7ee472c7976">sigDelay1</a>(<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> t0)                            { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGDELAY1, t0);       }
<a name="l00058"></a><a class="code" href="signals_8hh.html#a0899d7e2a69a467b0dcf62242397367f">00058</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a0899d7e2a69a467b0dcf62242397367f">isSigDelay1</a>(<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> t, <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>&amp; t0)                 { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGDELAY1, t0);  }
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="signals_8cpp.html#a08b6da63c7331266fe008d36e9d75f85">00060</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a08b6da63c7331266fe008d36e9d75f85">SIGFIXDELAY</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigFixDelay&quot;</span>);
<a name="l00061"></a><a class="code" href="signals_8hh.html#ae4887b59dd1461bfacc431147c78ebb8">00061</a> <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>  <a class="code" href="signals_8cpp.html#ae4887b59dd1461bfacc431147c78ebb8">sigFixDelay</a>(<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> t0, <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> t1)                 { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGFIXDELAY, t0, <a class="code" href="signals_8cpp.html#a6e61ed61966e9d6f2e19b4f114d6dc07">sigIntCast</a>(t1));         }
<a name="l00062"></a><a class="code" href="signals_8hh.html#af55cdefee258834b3b8f6c070d4970c9">00062</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#af55cdefee258834b3b8f6c070d4970c9">isSigFixDelay</a>(<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> t, <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>&amp; t0, <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>&amp; t1)     { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGFIXDELAY, t0, t1);    }
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="signals_8cpp.html#aec11b471830d692b0cd3385b95c244e7">00064</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#aec11b471830d692b0cd3385b95c244e7">SIGPREFIX</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigPrefix&quot;</span>);
<a name="l00065"></a><a class="code" href="signals_8hh.html#aed0831b7a845cd58ab430a42abb7e69c">00065</a> <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>  <a class="code" href="signals_8cpp.html#aed0831b7a845cd58ab430a42abb7e69c">sigPrefix</a>(<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> t0, <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> t1)                   { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGPREFIX, t0, t1);       }
<a name="l00066"></a><a class="code" href="signals_8hh.html#a18895c816779682006a84aede438af29">00066</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a18895c816779682006a84aede438af29">isSigPrefix</a>(<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> t, <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>&amp; t0, <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>&amp; t1)       { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGPREFIX, t0, t1);  }
<a name="l00067"></a>00067 
<a name="l00068"></a><a class="code" href="signals_8cpp.html#acc0f281bae1c5f29647f8a2dc2478fcc">00068</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#acc0f281bae1c5f29647f8a2dc2478fcc">SIGIOTA</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigIota&quot;</span>);
<a name="l00069"></a><a class="code" href="signals_8hh.html#ae7b70545ae308ab177a0249c2ea3b376">00069</a> <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>  <a class="code" href="signals_8cpp.html#ae7b70545ae308ab177a0249c2ea3b376">sigIota</a>(<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> t0)                              { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGIOTA, t0);         }
<a name="l00070"></a><a class="code" href="signals_8hh.html#a6aca999210178e06a21136a1bd819031">00070</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a6aca999210178e06a21136a1bd819031">isSigIota</a>(<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> t, <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>&amp; t0)                   { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGIOTA, t0);    }
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 <span class="comment">// Read only and read write tables</span>
<a name="l00074"></a>00074 
<a name="l00075"></a><a class="code" href="signals_8cpp.html#a4de34d51610b33480005a8714f54a3f2">00075</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a4de34d51610b33480005a8714f54a3f2">SIGRDTBL</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigRDTbl&quot;</span>);
<a name="l00076"></a><a class="code" href="signals_8hh.html#a67c117aff146c5cc279124db9302d1bf">00076</a> <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> <a class="code" href="signals_8cpp.html#a67c117aff146c5cc279124db9302d1bf">sigRDTbl</a> (<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> t, <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> i)                      { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGRDTBL, t, i);  }
<a name="l00077"></a><a class="code" href="signals_8hh.html#a9d9cbd375c200fa4e666de6ffb72dbca">00077</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a9d9cbd375c200fa4e666de6ffb72dbca">isSigRDTbl</a> (<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> s, <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>&amp; t, <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>&amp; i)          { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGRDTBL, t, i);     }
<a name="l00078"></a>00078 
<a name="l00079"></a><a class="code" href="signals_8cpp.html#a836a40fc48628114c2a2bd667a760ca4">00079</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a836a40fc48628114c2a2bd667a760ca4">SIGWRTBL</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigWRTbl&quot;</span>);
<a name="l00080"></a><a class="code" href="signals_8hh.html#a2672401b66a976293b4e3ba7f0753b02">00080</a> <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> <a class="code" href="signals_8cpp.html#a2672401b66a976293b4e3ba7f0753b02">sigWRTbl</a> (<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> <span class="keywordtype">id</span>, <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> t, <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> i, <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> s)                 { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGWRTBL, <span class="keywordtype">id</span>, t, i, s);   }
<a name="l00081"></a><a class="code" href="signals_8hh.html#ab5b22110acbd38b7d4634dc94bcc8d22">00081</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#ab5b22110acbd38b7d4634dc94bcc8d22">isSigWRTbl</a> (<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> u, <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>&amp; <span class="keywordtype">id</span>, <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>&amp; t, <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>&amp; i, <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>&amp; s)   { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(u, SIGWRTBL, <span class="keywordtype">id</span>, t, i, s);  }
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="signals_8cpp.html#a46a096f7514fd4013513d1de91463575">00083</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a46a096f7514fd4013513d1de91463575">SIGTABLE</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigTable&quot;</span>);
<a name="l00084"></a><a class="code" href="signals_8hh.html#a2a38df38b404eb17157251f69cfef84f">00084</a> <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> <a class="code" href="signals_8cpp.html#a2a38df38b404eb17157251f69cfef84f">sigTable</a> (<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> <span class="keywordtype">id</span>, <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> n, <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> sig)               { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGTABLE, <span class="keywordtype">id</span>, n, sig);        }
<a name="l00085"></a><a class="code" href="signals_8hh.html#aa9b2ad7a65566fbc382d60e315b42740">00085</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aa9b2ad7a65566fbc382d60e315b42740">isSigTable</a> (<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> t, <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>&amp; <span class="keywordtype">id</span>, <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>&amp; n, <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>&amp; sig)  { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGTABLE, <span class="keywordtype">id</span>, n, sig);   }
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 <span class="comment">// Signal used to generate the initial content of a table</span>
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="signals_8cpp.html#af6e6146ce1b1a27a762b03a265911975">00089</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#af6e6146ce1b1a27a762b03a265911975">SIGGEN</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigGen&quot;</span>);
<a name="l00090"></a><a class="code" href="signals_8hh.html#a2606e0f46d167ecae0e09b8283daf906">00090</a> <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> <a class="code" href="signals_8cpp.html#abacbc64e8cce6ae3c1657ba918781457">sigGen</a> (<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> s)                            { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGGEN, s);       }
<a name="l00091"></a><a class="code" href="signals_8hh.html#a6f1d1703a12eefbd5c2a741f6634e0e2">00091</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a771720237ca174a55a6823cc6623d602">isSigGen</a> (<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> t, <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>&amp; x)                 { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGGEN, x);  }
<a name="l00092"></a><a class="code" href="signals_8hh.html#a2fea27c6f6a553a1f4fb27c6e4b58e3a">00092</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a771720237ca174a55a6823cc6623d602">isSigGen</a> (<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> t)                          { <span class="keywordflow">return</span> t-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()== <a class="code" href="classNode.html" title="Class Node = (type x (int + double + Sym + void*)).">Node</a>(SIGGEN);  }
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 <span class="comment">// Documentator Tables : special version of tables only for documentation purposes</span>
<a name="l00096"></a>00096 
<a name="l00097"></a><a class="code" href="signals_8cpp.html#aef9014c53e227a4a2cf3ec6ece429a9b">00097</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#aef9014c53e227a4a2cf3ec6ece429a9b">SIGDOCONSTANTTBL</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigDocConstantTbl&quot;</span>);
<a name="l00098"></a><a class="code" href="signals_8hh.html#a65c7e6952759b9e5dac134d030ab9c27">00098</a> <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>   <a class="code" href="signals_8cpp.html#a36c185c79cf8b98f470efba0af2efc69">sigDocConstantTbl</a>    (<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> n, <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> sig)                  { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGDOCONSTANTTBL, n, sig);        }
<a name="l00099"></a><a class="code" href="signals_8hh.html#a323950fb8c6a4173a552b623e94c076c">00099</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a95620993ef284f3e29f20ebcc3b0a08e">isSigDocConstantTbl</a>    (<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> t, <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>&amp; n, <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>&amp; sig)        { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGDOCONSTANTTBL, n, sig);   }
<a name="l00100"></a>00100 
<a name="l00101"></a><a class="code" href="signals_8cpp.html#a6cac744eaa47387f6d9322ff88ffe75e">00101</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a6cac744eaa47387f6d9322ff88ffe75e">SIGDOCWRITETBL</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigDocWriteTbl&quot;</span>);
<a name="l00102"></a><a class="code" href="signals_8hh.html#aabc1e4ad4f423a5faed0c74f22a18bfe">00102</a> <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>   <a class="code" href="signals_8cpp.html#a800922251924a88b4cda1a07422af14c">sigDocWriteTbl</a>   (<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> n, <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> sig, <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> widx, <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> wsig)                { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGDOCWRITETBL, n, sig, widx, wsig);      }
<a name="l00103"></a><a class="code" href="signals_8hh.html#adbf3beef205c3c3fb502fb6f8c83d4d3">00103</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a4d843f58a403cb0802c2255489977396">isSigDocWriteTbl</a>   (<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> t, <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>&amp; n, <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>&amp; sig, <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>&amp; widx, <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>&amp; wsig)    { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGDOCWRITETBL, n, sig, widx, wsig);     }
<a name="l00104"></a>00104 
<a name="l00105"></a><a class="code" href="signals_8cpp.html#adb1dea7dfea904cd7e9b728681e21e34">00105</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#adb1dea7dfea904cd7e9b728681e21e34">SIGDOCACCESSTBL</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigDocAccessTbl&quot;</span>);
<a name="l00106"></a><a class="code" href="signals_8hh.html#ac31db95ab5339eb3ac68cc6d93716361">00106</a> <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>   <a class="code" href="signals_8cpp.html#abd470373166f165e8f30f3fd97e05221">sigDocAccessTbl</a>   (<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> tbl, <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> ridx)                  { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGDOCACCESSTBL, tbl, ridx);      }
<a name="l00107"></a><a class="code" href="signals_8hh.html#a5d60bb592f8bc9702c6757aa33c9dc37">00107</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aec3b01f2f3ae693b4422142a22e4d0af">isSigDocAccessTbl</a>   (<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> t, <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>&amp; tbl, <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>&amp; ridx)        { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGDOCACCESSTBL, tbl, ridx);     }
<a name="l00108"></a>00108 
<a name="l00109"></a>00109 
<a name="l00110"></a>00110 <span class="comment">// Select on signal among severals</span>
<a name="l00111"></a>00111 
<a name="l00112"></a><a class="code" href="signals_8cpp.html#ae13688f3e1debd9dd8a3224487de0742">00112</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#ae13688f3e1debd9dd8a3224487de0742">SIGSELECT2</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigSelect2&quot;</span>);
<a name="l00113"></a><a class="code" href="signals_8cpp.html#abbc10409f9145014134e315a909c8767">00113</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#abbc10409f9145014134e315a909c8767">SIGSELECT3</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigSelect3&quot;</span>);
<a name="l00114"></a>00114 
<a name="l00115"></a><a class="code" href="signals_8hh.html#a2283eb07e3595f93d678bf9ab986d914">00115</a> <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> <a class="code" href="signals_8cpp.html#a2283eb07e3595f93d678bf9ab986d914">sigSelect2</a> (<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> selector, <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> s1, <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> s2)                           { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGSELECT2, <a class="code" href="signals_8cpp.html#a6e61ed61966e9d6f2e19b4f114d6dc07">sigIntCast</a>(selector), s1, s2); }
<a name="l00116"></a><a class="code" href="signals_8hh.html#a55f14d5c4b5bc07285840f93d380b422">00116</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a55f14d5c4b5bc07285840f93d380b422">isSigSelect2</a> (<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> t, <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>&amp; selector, <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>&amp; s1, <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>&amp; s2)              { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGSELECT2, selector, s1, s2); }
<a name="l00117"></a>00117 
<a name="l00118"></a><a class="code" href="signals_8hh.html#a70367824d7df436ff7267bb124826750">00118</a> <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> <a class="code" href="signals_8cpp.html#a70367824d7df436ff7267bb124826750">sigSelect3</a> (<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> selector, <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> s1, <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> s2, <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> s3)                  { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGSELECT3, <a class="code" href="signals_8cpp.html#a6e61ed61966e9d6f2e19b4f114d6dc07">sigIntCast</a>(selector), s1, s2, s3); }
<a name="l00119"></a><a class="code" href="signals_8hh.html#a33cf5ac61f2ad8244394ce1e59914bbc">00119</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a33cf5ac61f2ad8244394ce1e59914bbc">isSigSelect3</a> (<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> t, <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>&amp; selector, <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>&amp; s1, <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>&amp; s2, <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>&amp; s3)    { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGSELECT3, selector, s1, s2, s3); }
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 <span class="comment">// Arithmetical operations</span>
<a name="l00123"></a>00123 
<a name="l00124"></a><a class="code" href="signals_8cpp.html#af47bd75e9f78e5b5cbca9e9d1d5074fa">00124</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#af47bd75e9f78e5b5cbca9e9d1d5074fa">SIGBINOP</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigBinOp&quot;</span>);
<a name="l00125"></a><a class="code" href="signals_8hh.html#a55fa9783de84ed638c37fb43c6a90969">00125</a> <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> <a class="code" href="signals_8cpp.html#a55fa9783de84ed638c37fb43c6a90969">sigBinOp</a>(<span class="keywordtype">int</span> op, <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> x, <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> y)                   { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGBINOP, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(op), x, y); }
<a name="l00126"></a><a class="code" href="signals_8hh.html#a8705584c3c319be54be73dc391d25634">00126</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a8705584c3c319be54be73dc391d25634">isSigBinOp</a>(<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> s, <span class="keywordtype">int</span>* op, <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>&amp; x, <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>&amp; y)      { <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> t; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGBINOP, t, x, y) &amp;&amp; <a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(t-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),op); }
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 
<a name="l00129"></a>00129 <span class="comment">// Foreign Functions</span>
<a name="l00130"></a>00130 
<a name="l00131"></a><a class="code" href="signals_8cpp.html#a85f7acfd204431f39aac0bdf1d0fa714">00131</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a85f7acfd204431f39aac0bdf1d0fa714">SIGFFUN</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigFFun&quot;</span>);
<a name="l00132"></a><a class="code" href="signals_8hh.html#a5c6e4a91a934fb4568c0f8fa23ff873e">00132</a> <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> <a class="code" href="signals_8cpp.html#a5c6e4a91a934fb4568c0f8fa23ff873e">sigFFun</a> (<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> ff, <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> largs)                      { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGFFUN, ff, largs);          }
<a name="l00133"></a><a class="code" href="signals_8hh.html#a7d60b2c9da70fb0a2edff9593d38c573">00133</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a7d60b2c9da70fb0a2edff9593d38c573">isSigFFun</a>  (<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> s, <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>&amp; ff, <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>&amp; largs)         { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGFFUN, ff, largs);     }
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 
<a name="l00136"></a><a class="code" href="signals_8cpp.html#a7b1256b32f3752e4b9a902828a6459cb">00136</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a7b1256b32f3752e4b9a902828a6459cb">SIGFCONST</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigFConst&quot;</span>);
<a name="l00137"></a><a class="code" href="signals_8hh.html#ab1bd1bc9b0fb496e11de72152994dbee">00137</a> <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> <a class="code" href="signals_8cpp.html#ab1bd1bc9b0fb496e11de72152994dbee">sigFConst</a>      (<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> type, <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> <a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>, <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> file)             { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGFCONST, type, name, file);         }
<a name="l00138"></a><a class="code" href="signals_8hh.html#a71788aa9ccfc0aa598243fbef2a88f68">00138</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a71788aa9ccfc0aa598243fbef2a88f68">isSigFConst</a>    (<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> s)                                      { <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> t,n,f; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGFCONST, t, n, f); }
<a name="l00139"></a><a class="code" href="signals_8hh.html#abd2be79310b75da29d96b28e257c5242">00139</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a71788aa9ccfc0aa598243fbef2a88f68">isSigFConst</a>    (<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> s, <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>&amp; type, <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>&amp; <a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>, <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>&amp; file)  { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGFCONST,type, name, file);     }
<a name="l00140"></a>00140 
<a name="l00141"></a>00141 
<a name="l00142"></a><a class="code" href="signals_8cpp.html#ad203f3e59cfaa24fcf517ea441f6605a">00142</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#ad203f3e59cfaa24fcf517ea441f6605a">SIGFVAR</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigFVar&quot;</span>);
<a name="l00143"></a><a class="code" href="signals_8hh.html#a418ca95309a0d48e34ebd94360fb1f69">00143</a> <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> <a class="code" href="signals_8cpp.html#a418ca95309a0d48e34ebd94360fb1f69">sigFVar</a>      (<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> type, <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> <a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>, <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> file)               { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGFVAR, type, name, file);           }
<a name="l00144"></a><a class="code" href="signals_8hh.html#a13d7a7178d98383c309b0e4a45dfc96b">00144</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a13d7a7178d98383c309b0e4a45dfc96b">isSigFVar</a>    (<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> s)                                        { <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> t,n,f; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGFVAR, t, n, f);   }
<a name="l00145"></a><a class="code" href="signals_8hh.html#a1a26722ecc657ce7d2808afdf35c3496">00145</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a13d7a7178d98383c309b0e4a45dfc96b">isSigFVar</a>    (<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> s, <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>&amp; type, <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>&amp; <a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>, <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>&amp; file)    { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGFVAR, type, name, file);      }
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 <span class="comment">// nouvelle version utilisant rec et ref</span>
<a name="l00148"></a>00148 
<a name="l00149"></a><a class="code" href="signals_8cpp.html#a760b3cf353e081fc8e348efbf57a831b">00149</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a760b3cf353e081fc8e348efbf57a831b">SIGPROJ</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigProj&quot;</span>);
<a name="l00150"></a><a class="code" href="signals_8hh.html#a179e69f65c0cd6f6b9e855cbd9ae5e08">00150</a> <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> <a class="code" href="signals_8cpp.html#a179e69f65c0cd6f6b9e855cbd9ae5e08">sigProj</a> (<span class="keywordtype">int</span> i, <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> rgroup)               { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGPROJ, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(i), rgroup);    }
<a name="l00151"></a><a class="code" href="signals_8hh.html#a9b54e9177bb3726e06700649c3e5c05d">00151</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a9b54e9177bb3726e06700649c3e5c05d">isProj</a> (<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> t, <span class="keywordtype">int</span>* i, <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>&amp; rgroup)      { <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> x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGPROJ, x, rgroup) &amp;&amp; <a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(x-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(), i);  }
<a name="l00152"></a>00152 
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 <span class="comment">// Int and Float casting</span>
<a name="l00155"></a>00155 
<a name="l00156"></a><a class="code" href="signals_8cpp.html#af179743a0e38afedc4f988a5e3933d64">00156</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#af179743a0e38afedc4f988a5e3933d64">SIGINTCAST</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigIntCast&quot;</span>);
<a name="l00157"></a><a class="code" href="signals_8cpp.html#aa75150fc68a37dcddc3d57bb02f8e1b9">00157</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#aa75150fc68a37dcddc3d57bb02f8e1b9">SIGFLOATCAST</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigFloatCast&quot;</span>);
<a name="l00158"></a>00158 
<a name="l00159"></a><a class="code" href="signals_8hh.html#a6e61ed61966e9d6f2e19b4f114d6dc07">00159</a> <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>  <a class="code" href="signals_8cpp.html#a6e61ed61966e9d6f2e19b4f114d6dc07">sigIntCast</a>(<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> t)                        
<a name="l00160"></a>00160 { 
<a name="l00161"></a>00161     <a class="code" href="classNode.html" title="Class Node = (type x (int + double + Sym + void*)).">Node</a> n = t-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>();
<a name="l00162"></a>00162     
<a name="l00163"></a>00163     <span class="keywordtype">int</span> i;      <span class="keywordflow">if</span> (<a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(n, &amp;i))           <span class="keywordflow">return</span> t; 
<a name="l00164"></a>00164     <span class="keywordtype">double</span> x;   <span class="keywordflow">if</span> (<a class="code" href="node_8hh.html#aab6c20fb5dce797e97ac8ec8591258af">isDouble</a>(n, &amp;x))        <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<span class="keywordtype">int</span>(x));
<a name="l00165"></a>00165                 <span class="keywordflow">if</span> (<a class="code" href="signals_8cpp.html#a3ef48f0da2ef5b8e3ee7371a1e4059ae">isSigIntCast</a>(t))        <span class="keywordflow">return</span> t;
<a name="l00166"></a>00166      
<a name="l00167"></a>00167     <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGINTCAST, t);   
<a name="l00168"></a>00168 }
<a name="l00169"></a>00169 
<a name="l00170"></a><a class="code" href="signals_8hh.html#a93095558ccb99d241c8839e2eacbd64f">00170</a> <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>  <a class="code" href="signals_8cpp.html#a93095558ccb99d241c8839e2eacbd64f">sigFloatCast</a>(<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> t)                      
<a name="l00171"></a>00171 { 
<a name="l00172"></a>00172     <a class="code" href="classNode.html" title="Class Node = (type x (int + double + Sym + void*)).">Node</a> n = t-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>();
<a name="l00173"></a>00173     
<a name="l00174"></a>00174     <span class="keywordtype">int</span> i;      <span class="keywordflow">if</span> (<a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(n, &amp;i))           <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<span class="keywordtype">double</span>(i)); 
<a name="l00175"></a>00175     <span class="keywordtype">double</span> x;   <span class="keywordflow">if</span> (<a class="code" href="node_8hh.html#aab6c20fb5dce797e97ac8ec8591258af">isDouble</a>(n, &amp;x))        <span class="keywordflow">return</span> t;
<a name="l00176"></a>00176                 <span class="keywordflow">if</span> (<a class="code" href="signals_8cpp.html#a52448156d86125bbc8de23d641217de2">isSigFloatCast</a>(t))      <span class="keywordflow">return</span> t;
<a name="l00177"></a>00177                 <span class="keywordflow">if</span> (<a class="code" href="signals_8cpp.html#a38254d67a0541d98c6097fd51b22ea45">isSigInput</a>(t, &amp;i))      <span class="keywordflow">return</span> t;
<a name="l00178"></a>00178      
<a name="l00179"></a>00179     <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGFLOATCAST, t);   
<a name="l00180"></a>00180 }
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 <span class="comment">//Tree  sigFloatCast(Tree t)                        { return isSigFloatCast(t)? t : tree(SIGFLOATCAST, t); }</span>
<a name="l00183"></a>00183 
<a name="l00184"></a><a class="code" href="signals_8hh.html#a3ef48f0da2ef5b8e3ee7371a1e4059ae">00184</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a3ef48f0da2ef5b8e3ee7371a1e4059ae">isSigIntCast</a>(<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> t)                      { <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> x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGINTCAST, x);  }
<a name="l00185"></a><a class="code" href="signals_8hh.html#abeae2045d36360989add1ba760b24d40">00185</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a3ef48f0da2ef5b8e3ee7371a1e4059ae">isSigIntCast</a>(<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> t, <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>&amp; x)             { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGINTCAST, x);          }
<a name="l00186"></a>00186 
<a name="l00187"></a><a class="code" href="signals_8hh.html#a52448156d86125bbc8de23d641217de2">00187</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a52448156d86125bbc8de23d641217de2">isSigFloatCast</a>(<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> t)                    { <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> x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGFLOATCAST, x);}
<a name="l00188"></a><a class="code" href="signals_8hh.html#a97de38bfa5d4bcca67efe1d894412378">00188</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#a52448156d86125bbc8de23d641217de2">isSigFloatCast</a>(<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> t, <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>&amp; x)           { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGFLOATCAST, x);        }
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 <span class="comment">/*****************************************************************************</span>
<a name="l00194"></a>00194 <span class="comment">                             User Interface Elements</span>
<a name="l00195"></a>00195 <span class="comment">*****************************************************************************/</span>
<a name="l00196"></a>00196 
<a name="l00197"></a><a class="code" href="signals_8cpp.html#ae9fc1739d32c9c35ad12421188e4d34f">00197</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#ae9fc1739d32c9c35ad12421188e4d34f">SIGBUTTON</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigButton&quot;</span>);
<a name="l00198"></a><a class="code" href="signals_8hh.html#a525fabdd4e281f1ecc1a43b3044de6df">00198</a> <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> <a class="code" href="signals_8cpp.html#a327112b28308d9b4fe901460d3374b50">sigButton</a>   (<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> lbl)                 { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGBUTTON, lbl);                  }
<a name="l00199"></a><a class="code" href="signals_8hh.html#a9cb8af593289d910a1f8ec8a9c8d880f">00199</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a9cb8af593289d910a1f8ec8a9c8d880f">isSigButton</a> (<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> s)                   { <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> lbl; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGBUTTON, lbl);   }
<a name="l00200"></a><a class="code" href="signals_8hh.html#ad1a0aac0636e212e61495039ad4cbe2b">00200</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a9cb8af593289d910a1f8ec8a9c8d880f">isSigButton</a> (<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> s, <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>&amp; lbl)        { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGBUTTON, lbl);             }
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 
<a name="l00203"></a><a class="code" href="signals_8cpp.html#abfa217568009a243c9041793c244e228">00203</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#abfa217568009a243c9041793c244e228">SIGCHECKBOX</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigCheckbox&quot;</span>);
<a name="l00204"></a><a class="code" href="signals_8hh.html#af8c13e11337a8ed32e2f40fb85904a14">00204</a> <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> <a class="code" href="signals_8cpp.html#a47620af04c857dc88339dfdfe48c6480">sigCheckbox</a>   (<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> lbl)               { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGCHECKBOX, lbl);                    }
<a name="l00205"></a><a class="code" href="signals_8hh.html#a48996c1ce74258d499baae3d267078bc">00205</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a48996c1ce74258d499baae3d267078bc">isSigCheckbox</a> (<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> s)                 { <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> lbl; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGCHECKBOX, lbl); }
<a name="l00206"></a><a class="code" href="signals_8hh.html#acb537951441cc1c39664235ca8d310d4">00206</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a48996c1ce74258d499baae3d267078bc">isSigCheckbox</a> (<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> s, <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>&amp; lbl)      { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGCHECKBOX, lbl);               }
<a name="l00207"></a>00207 
<a name="l00208"></a>00208 
<a name="l00209"></a><a class="code" href="signals_8cpp.html#a281f7c612eb9679c8fbebc14d5892dc3">00209</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a281f7c612eb9679c8fbebc14d5892dc3">SIGHSLIDER</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigHSlider&quot;</span>);
<a name="l00210"></a><a class="code" href="signals_8hh.html#a87fe4f6e8cfd0c88ea916d2dfbe97920">00210</a> <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> <a class="code" href="signals_8cpp.html#a381ceb23680c932aeb376fa1ab49200b">sigHSlider</a>   (<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> lbl, <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> cur, <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> <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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> <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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> step)
<a name="l00211"></a>00211                                             { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGHSLIDER, lbl, <a class="code" href="list_8hh.html#a98e1fc72e3cecd5580c48ba4dc3103db">list4</a>(cur,min,max,step));        }
<a name="l00212"></a><a class="code" href="signals_8hh.html#aaa72c718314a1ba2cee25a95c153e37d">00212</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aaa72c718314a1ba2cee25a95c153e37d">isSigHSlider</a> (<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> s)                  { <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> lbl, params; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGHSLIDER, lbl, params);  }
<a name="l00213"></a>00213 
<a name="l00214"></a><a class="code" href="signals_8hh.html#ac58c6ab8d046e7e502c031618c71b604">00214</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aaa72c718314a1ba2cee25a95c153e37d">isSigHSlider</a> (<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> s, <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>&amp; lbl, <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>&amp; cur, <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>&amp; <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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>&amp; <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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>&amp; step)
<a name="l00215"></a>00215 {
<a name="l00216"></a>00216     <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> params;
<a name="l00217"></a>00217     <span class="keywordflow">if</span> (<a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGHSLIDER, lbl, params)) {
<a name="l00218"></a>00218         cur = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 0);
<a name="l00219"></a>00219         min = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 1);
<a name="l00220"></a>00220         max = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 2);
<a name="l00221"></a>00221         step= <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 3);
<a name="l00222"></a>00222         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00223"></a>00223     } <span class="keywordflow">else</span> {
<a name="l00224"></a>00224         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00225"></a>00225     }
<a name="l00226"></a>00226 }
<a name="l00227"></a>00227 
<a name="l00228"></a>00228 
<a name="l00229"></a><a class="code" href="signals_8cpp.html#a1cd83f7595178ccf9804736e33f24776">00229</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a1cd83f7595178ccf9804736e33f24776">SIGVSLIDER</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigVSlider&quot;</span>);
<a name="l00230"></a><a class="code" href="signals_8hh.html#aae3402a69879dd8ab56f754ff62da66b">00230</a> <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> <a class="code" href="signals_8cpp.html#a6f4f7ff965986d0c4b972e4b78397c6e">sigVSlider</a>   (<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> lbl, <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> cur, <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> <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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> <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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> step)
<a name="l00231"></a>00231                                             { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGVSLIDER, lbl, <a class="code" href="list_8hh.html#a98e1fc72e3cecd5580c48ba4dc3103db">list4</a>(cur,min,max,step));        }
<a name="l00232"></a><a class="code" href="signals_8hh.html#aac990f39e6a1d50e8e1de3b6f7701cfe">00232</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aac990f39e6a1d50e8e1de3b6f7701cfe">isSigVSlider</a> (<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> s)                  { <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> lbl, params; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGVSLIDER, lbl, params);  }
<a name="l00233"></a>00233 
<a name="l00234"></a><a class="code" href="signals_8hh.html#a13116f62c3452fe23a7c17d918cbac7a">00234</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aac990f39e6a1d50e8e1de3b6f7701cfe">isSigVSlider</a> (<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> s, <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>&amp; lbl, <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>&amp; cur, <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>&amp; <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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>&amp; <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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>&amp; step)
<a name="l00235"></a>00235 {
<a name="l00236"></a>00236     <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> params;
<a name="l00237"></a>00237     <span class="keywordflow">if</span> (<a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGVSLIDER, lbl, params)) {
<a name="l00238"></a>00238         cur = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 0);
<a name="l00239"></a>00239         min = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 1);
<a name="l00240"></a>00240         max = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 2);
<a name="l00241"></a>00241         step= <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 3);
<a name="l00242"></a>00242         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00243"></a>00243     } <span class="keywordflow">else</span> {
<a name="l00244"></a>00244         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00245"></a>00245     }
<a name="l00246"></a>00246 }
<a name="l00247"></a>00247 
<a name="l00248"></a>00248 
<a name="l00249"></a><a class="code" href="signals_8cpp.html#aab72576b13588e10d76b1dcc9923936a">00249</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#aab72576b13588e10d76b1dcc9923936a">SIGNUMENTRY</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigNumEntry&quot;</span>);
<a name="l00250"></a><a class="code" href="signals_8hh.html#a3af7c9f5b531cf07d5395aaaf3fa81a3">00250</a> <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> <a class="code" href="signals_8cpp.html#aa525ca530089477ae6c19615d2c8602b">sigNumEntry</a>   (<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> lbl, <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> cur, <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> <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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> <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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> step)
<a name="l00251"></a>00251                                             { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGNUMENTRY, lbl, <a class="code" href="list_8hh.html#a98e1fc72e3cecd5580c48ba4dc3103db">list4</a>(cur,min,max,step));       }
<a name="l00252"></a><a class="code" href="signals_8hh.html#aa8476971aba67dfc3af7b5d11f974ef3">00252</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aa8476971aba67dfc3af7b5d11f974ef3">isSigNumEntry</a> (<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> s)                 { <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> lbl, params; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGNUMENTRY, lbl, params); }
<a name="l00253"></a>00253 
<a name="l00254"></a><a class="code" href="signals_8hh.html#a464cb4b7fd6912fcbbdb094c4f327097">00254</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aa8476971aba67dfc3af7b5d11f974ef3">isSigNumEntry</a> (<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> s, <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>&amp; lbl, <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>&amp; cur, <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>&amp; <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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>&amp; <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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>&amp; step)
<a name="l00255"></a>00255 {
<a name="l00256"></a>00256     <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> params;
<a name="l00257"></a>00257     <span class="keywordflow">if</span> (<a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGNUMENTRY, lbl, params)) {
<a name="l00258"></a>00258         cur = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 0);
<a name="l00259"></a>00259         min = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 1);
<a name="l00260"></a>00260         max = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 2);
<a name="l00261"></a>00261         step= <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 3);
<a name="l00262"></a>00262         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00263"></a>00263     } <span class="keywordflow">else</span> {
<a name="l00264"></a>00264         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00265"></a>00265     }
<a name="l00266"></a>00266 }
<a name="l00267"></a>00267 
<a name="l00268"></a>00268 <span class="comment">// output elements</span>
<a name="l00269"></a>00269 
<a name="l00270"></a>00270 
<a name="l00271"></a>00271 
<a name="l00272"></a><a class="code" href="signals_8cpp.html#aa1e2f96cdfe084a0b00aaa8207820688">00272</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#aa1e2f96cdfe084a0b00aaa8207820688">SIGHBARGRAPH</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigHBargraph&quot;</span>);
<a name="l00273"></a><a class="code" href="signals_8hh.html#a1c33b94c9dac0cf77441a5da8eae07d4">00273</a> <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> <a class="code" href="signals_8cpp.html#a281a22031cdd673e3d6d90d4381478af">sigHBargraph</a>   (<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> lbl, <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> <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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> <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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> x)              { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGHBARGRAPH, lbl, min, max, x);      }
<a name="l00274"></a><a class="code" href="signals_8hh.html#a5acf9dd03d1d0032e9486867876f1806">00274</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a5acf9dd03d1d0032e9486867876f1806">isSigHBargraph</a> (<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> s)                                            { <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> lbl, <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGHBARGRAPH, lbl, min, max, x);  }
<a name="l00275"></a><a class="code" href="signals_8hh.html#a291a6b7c2f2dc21162b93de55feb7de4">00275</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a5acf9dd03d1d0032e9486867876f1806">isSigHBargraph</a> (<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> s, <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>&amp; lbl, <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>&amp; <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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>&amp; <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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>&amp; x)  { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGHBARGRAPH, lbl, min, max, x); }
<a name="l00276"></a>00276 
<a name="l00277"></a>00277 
<a name="l00278"></a><a class="code" href="signals_8cpp.html#af3813707eaa1f0ecb0928e5a35fe4081">00278</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#af3813707eaa1f0ecb0928e5a35fe4081">SIGVBARGRAPH</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigVBargraph&quot;</span>);
<a name="l00279"></a><a class="code" href="signals_8hh.html#ac28e9b79e0b7e5f90da022e7ae244d66">00279</a> <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> <a class="code" href="signals_8cpp.html#a2ac832dcf8578384e807364c6a28bb51">sigVBargraph</a>   (<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> lbl, <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> <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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> <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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> x)              { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGVBARGRAPH, lbl, min, max, x);      }
<a name="l00280"></a><a class="code" href="signals_8hh.html#a667a345cf4efcba00fce5a06bc1e8299">00280</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a667a345cf4efcba00fce5a06bc1e8299">isSigVBargraph</a> (<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> s)                                            { <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> lbl, <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGVBARGRAPH, lbl, min, max, x);  }
<a name="l00281"></a><a class="code" href="signals_8hh.html#ab4cab28a10c98324b4a0beea7ed096b9">00281</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a667a345cf4efcba00fce5a06bc1e8299">isSigVBargraph</a> (<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> s, <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>&amp; lbl, <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>&amp; <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>, <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>&amp; <a class="code" href="interval_8hh.html#a1c45761573e6cbc97cfacac78d905016">max</a>, <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>&amp; x)  { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGVBARGRAPH, lbl, min, max, x); }
<a name="l00282"></a>00282 
<a name="l00283"></a>00283 
<a name="l00284"></a><a class="code" href="signals_8cpp.html#ad06d1f333aa745ff9a4c8758da53bc23">00284</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#ad06d1f333aa745ff9a4c8758da53bc23">SIGATTACH</a> = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;sigAttach&quot;</span>);
<a name="l00285"></a><a class="code" href="signals_8hh.html#ad669b2a3014dfa055bbf7341be21e98a">00285</a> <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>  <a class="code" href="signals_8cpp.html#ad8a10742ab836237673156bf6b37cf20">sigAttach</a>(<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> t0, <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> t1)                   { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGATTACH, t0, t1);       }
<a name="l00286"></a><a class="code" href="signals_8hh.html#a75c5b3bd7ad24ad37546aa3792a8eb16">00286</a> <span class="keywordtype">bool</span>  <a class="code" href="signals_8cpp.html#ad717966fe25735c5cf799e04338192b4">isSigAttach</a>(<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> t, <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>&amp; t0, <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>&amp; t1)       { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, SIGATTACH, t0, t1);  }
<a name="l00287"></a>00287 
<a name="l00288"></a>00288 
<a name="l00289"></a>00289 
<a name="l00290"></a><a class="code" href="signals_8hh.html#a369bad070ca89f4e4317d20a2414804a">00290</a> <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> <a class="code" href="signals_8cpp.html#a369bad070ca89f4e4317d20a2414804a">addNums</a>(<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> a, <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> b)
<a name="l00291"></a>00291 {
<a name="l00292"></a>00292     <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> r = <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="node_8hh.html#aeb2ec3f47437cd6d76b5ffae47517283">addNode</a>(a-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),b-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()));
<a name="l00293"></a>00293     <span class="comment">//cerr.flags(ios::showpoint); cerr &lt;&lt; &quot;addNums &quot; &lt;&lt; *a &lt;&lt; &quot;+&quot; &lt;&lt; *b &lt;&lt; &quot; -&gt; &quot; &lt;&lt; *r &lt;&lt; endl;</span>
<a name="l00294"></a>00294     <span class="keywordflow">return</span> r;
<a name="l00295"></a>00295 }
<a name="l00296"></a>00296 
<a name="l00297"></a><a class="code" href="signals_8hh.html#a0f08d686c84af5dcbb014481cd6b6d80">00297</a> <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> <a class="code" href="signals_8cpp.html#a0f08d686c84af5dcbb014481cd6b6d80">subNums</a>(<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> a, <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> b)
<a name="l00298"></a>00298 {
<a name="l00299"></a>00299     <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> r = <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="node_8hh.html#aeaf6a04d706f2a440b2302354a6d072c">subNode</a>(a-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),b-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()));
<a name="l00300"></a>00300     <span class="comment">//cerr.flags(ios::showpoint); cerr &lt;&lt; &quot;subNums &quot; &lt;&lt; *a &lt;&lt; &quot;-&quot; &lt;&lt; *b &lt;&lt; &quot; -&gt; &quot; &lt;&lt; *r &lt;&lt; endl;</span>
<a name="l00301"></a>00301     <span class="keywordflow">return</span> r;
<a name="l00302"></a>00302 }
<a name="l00303"></a>00303 
<a name="l00304"></a><a class="code" href="signals_8hh.html#a3776e79cce66f0a453a7f9f9c0b121f9">00304</a> <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> <a class="code" href="signals_8cpp.html#a3776e79cce66f0a453a7f9f9c0b121f9">mulNums</a>(<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> a, <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> b)
<a name="l00305"></a>00305 {
<a name="l00306"></a>00306     <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> r = <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="node_8hh.html#ad637e09183c3ea7697163dbd1c2e9f30">mulNode</a>(a-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),b-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()));
<a name="l00307"></a>00307     <span class="comment">//cerr.flags(ios::showpoint); cerr &lt;&lt; &quot;mulNums &quot; &lt;&lt; *a &lt;&lt; &quot;*&quot; &lt;&lt; *b &lt;&lt; &quot; -&gt; &quot; &lt;&lt; *r &lt;&lt; endl;</span>
<a name="l00308"></a>00308     <span class="keywordflow">return</span> r;
<a name="l00309"></a>00309 }
<a name="l00310"></a>00310 
<a name="l00311"></a><a class="code" href="signals_8hh.html#ac84061c8f4da760aa43e1f0ce217c64a">00311</a> <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> <a class="code" href="signals_8cpp.html#ac84061c8f4da760aa43e1f0ce217c64a">divNums</a>(<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> a, <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> b)
<a name="l00312"></a>00312 {
<a name="l00313"></a>00313     <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> r = <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="node_8hh.html#ae5a3df17f83e065ebc1b2db960b943ba">divNode</a>(a-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),b-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()));
<a name="l00314"></a>00314     <span class="comment">//cerr.flags(ios::showpoint); cerr &lt;&lt; &quot;divNums &quot; &lt;&lt; *a &lt;&lt; &quot;/&quot; &lt;&lt; *b &lt;&lt; &quot; -&gt; &quot; &lt;&lt; *r &lt;&lt; endl;</span>
<a name="l00315"></a>00315     <span class="keywordflow">return</span> r;
<a name="l00316"></a>00316 }
<a name="l00317"></a>00317 
<a name="l00318"></a><a class="code" href="signals_8hh.html#aba38f7c9a8eeef0df2a7473c760bf66b">00318</a> <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> <a class="code" href="signals_8cpp.html#aba38f7c9a8eeef0df2a7473c760bf66b">divExtendedNums</a>(<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> a, <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> b)
<a name="l00319"></a>00319 {
<a name="l00320"></a>00320     <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> r = <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="node_8hh.html#adfaefa7f837cd8816a07d8838b56a9ab">divExtendedNode</a>(a-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),b-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()));
<a name="l00321"></a>00321     <span class="comment">//cerr.flags(ios::showpoint); cerr &lt;&lt; &quot;divExtendeNums &quot; &lt;&lt; *a &lt;&lt; &quot;/&quot; &lt;&lt; *b &lt;&lt; &quot; -&gt; &quot; &lt;&lt; *r &lt;&lt; endl;</span>
<a name="l00322"></a>00322     <span class="keywordflow">return</span> r;
<a name="l00323"></a>00323 }
<a name="l00324"></a>00324 
<a name="l00325"></a><a class="code" href="signals_8hh.html#a977348aaa96d81b46d68860a901986da">00325</a> <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> <a class="code" href="signals_8cpp.html#a977348aaa96d81b46d68860a901986da">minusNum</a>(<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> a)
<a name="l00326"></a>00326 {
<a name="l00327"></a>00327     <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> r = <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="node_8hh.html#a9b716ad4ea81f6fe5f932d49a33f3968">minusNode</a>(a-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()));
<a name="l00328"></a>00328     <span class="comment">//cerr.flags(ios::showpoint); cerr &lt;&lt; &quot;minusNum &quot; &lt;&lt; *a &lt;&lt; &quot; -&gt; &quot; &lt;&lt; *r &lt;&lt; endl;</span>
<a name="l00329"></a>00329     <span class="keywordflow">return</span> r;
<a name="l00330"></a>00330 }
<a name="l00331"></a>00331 
<a name="l00332"></a><a class="code" href="signals_8hh.html#a6ef3e40dfc7f33adf2525b16bcc70f3c">00332</a> <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> <a class="code" href="signals_8cpp.html#a6ef3e40dfc7f33adf2525b16bcc70f3c">inverseNum</a>(<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> a)
<a name="l00333"></a>00333 {
<a name="l00334"></a>00334     <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> r = <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="node_8hh.html#a533df2f8501fde80c07a7ec9d79ebdaf">inverseNode</a>(a-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()));
<a name="l00335"></a>00335     <span class="comment">//cerr.flags(ios::showpoint); cerr &lt;&lt; &quot;inverseNum &quot; &lt;&lt; *a &lt;&lt; &quot; -&gt; &quot; &lt;&lt; *r &lt;&lt; endl;</span>
<a name="l00336"></a>00336     <span class="keywordflow">return</span> r;
<a name="l00337"></a>00337 }
<a name="l00338"></a>00338 
<a name="l00339"></a><a class="code" href="signals_8hh.html#af2170410864f733d6cb749f3add9a0c1">00339</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#af2170410864f733d6cb749f3add9a0c1">isSigAdd</a>(<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> a, <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>&amp; x, <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>&amp; y)
<a name="l00340"></a>00340 {
<a name="l00341"></a>00341     <span class="keywordtype">int</span> op;
<a name="l00342"></a>00342     <span class="keywordflow">return</span> <a class="code" href="signals_8cpp.html#a8705584c3c319be54be73dc391d25634">isSigBinOp</a>(a, &amp;op, x, y) &amp;&amp; (op == <a class="code" href="binop_8hh.html#abc6126af1d45847bc59afa0aa3216b04a8d20f6cca2d49a8732f535cfe28812c8">kAdd</a>);
<a name="l00343"></a>00343 }
<a name="l00344"></a>00344 
<a name="l00345"></a><a class="code" href="signals_8hh.html#a83cfe7606cdddce154e2e4c79a9256f3">00345</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a83cfe7606cdddce154e2e4c79a9256f3">isSigMul</a>(<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> a, <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>&amp; x, <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>&amp; y)
<a name="l00346"></a>00346 {
<a name="l00347"></a>00347     <span class="keywordtype">int</span> op;
<a name="l00348"></a>00348     <span class="keywordflow">return</span> <a class="code" href="signals_8cpp.html#a8705584c3c319be54be73dc391d25634">isSigBinOp</a>(a, &amp;op, x, y) &amp;&amp; (op == <a class="code" href="binop_8hh.html#abc6126af1d45847bc59afa0aa3216b04ab8488ea0c4c9fd6bf85f12e3ad5eba18">kMul</a>);
<a name="l00349"></a>00349 }
<a name="l00350"></a>00350 
<a name="l00351"></a><a class="code" href="signals_8hh.html#ab3314bd8fde9efe6bc12c7d52f8a4e7b">00351</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#ab3314bd8fde9efe6bc12c7d52f8a4e7b">isSigSub</a>(<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> a, <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>&amp; x, <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>&amp; y)
<a name="l00352"></a>00352 {
<a name="l00353"></a>00353     <span class="keywordtype">int</span> op;
<a name="l00354"></a>00354     <span class="keywordflow">return</span> <a class="code" href="signals_8cpp.html#a8705584c3c319be54be73dc391d25634">isSigBinOp</a>(a, &amp;op, x, y) &amp;&amp; (op == <a class="code" href="binop_8hh.html#abc6126af1d45847bc59afa0aa3216b04aa8aa42e35eb8248e580bf83ded4311d3">kSub</a>);
<a name="l00355"></a>00355 }
<a name="l00356"></a>00356 
<a name="l00357"></a><a class="code" href="signals_8hh.html#ab86d4703fc4e3b9469171745e4781575">00357</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#ab86d4703fc4e3b9469171745e4781575">isSigDiv</a>(<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> a, <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>&amp; x, <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>&amp; y)
<a name="l00358"></a>00358 {
<a name="l00359"></a>00359     <span class="keywordtype">int</span> op;
<a name="l00360"></a>00360     <span class="keywordflow">return</span> <a class="code" href="signals_8cpp.html#a8705584c3c319be54be73dc391d25634">isSigBinOp</a>(a, &amp;op, x, y) &amp;&amp; (op == <a class="code" href="binop_8hh.html#abc6126af1d45847bc59afa0aa3216b04aef0a0af82a04caacbdd669707bfe3ab1">kDiv</a>);
<a name="l00361"></a>00361 }
<a name="l00362"></a>00362 
<a name="l00363"></a>00363 
<a name="l00364"></a>00364 
<a name="l00365"></a>00365 
<a name="l00366"></a>00366 <span class="comment">/*****************************************************************************</span>
<a name="l00367"></a>00367 <span class="comment">                             matrix extension</span>
<a name="l00368"></a>00368 <span class="comment">*****************************************************************************/</span>
<a name="l00369"></a><a class="code" href="signals_8cpp.html#a36fdb5142be11a5b9881aa1b84a73ebf">00369</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a36fdb5142be11a5b9881aa1b84a73ebf">SIGTUPLE</a>        = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigTuple&quot;</span>);
<a name="l00370"></a><a class="code" href="signals_8cpp.html#a5ca5eb5f29d6b8fa75a30fd6f4913129">00370</a> <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> <a class="code" href="signals_8cpp.html#a5ca5eb5f29d6b8fa75a30fd6f4913129">SIGTUPLEACCESS</a>  = <a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a> (<span class="stringliteral">&quot;SigTupleAccess&quot;</span>);
<a name="l00371"></a>00371 
<a name="l00372"></a>00372 <span class="comment">// a tuple of signals is basically a list of signals.</span>
<a name="l00373"></a>00373 <span class="comment">// mode = 0 means normal, mode = 1 means blocked</span>
<a name="l00374"></a><a class="code" href="signals_8hh.html#a09dda668fcc5260f97312e1df700e5ff">00374</a> <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> <a class="code" href="signals_8cpp.html#a09dda668fcc5260f97312e1df700e5ff">sigTuple</a> (<span class="keywordtype">int</span> mode, <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> ls)                   { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGTUPLE, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(mode), ls); }
<a name="l00375"></a><a class="code" href="signals_8hh.html#aa37973cfd2efa2c2db82019f10913b87">00375</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#aa37973cfd2efa2c2db82019f10913b87">isSigTuple</a> (<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> s, <span class="keywordtype">int</span>* mode, <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>&amp; ls)       { <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> m; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGTUPLE, m, ls) &amp;&amp; <a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(m-&gt;<a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(), mode); }
<a name="l00376"></a>00376 
<a name="l00377"></a>00377 <span class="comment">// Access the components of a tuple.</span>
<a name="l00378"></a>00378 <span class="comment">// ts is tuple of signals, idx is a scalar signal between 0..n</span>
<a name="l00379"></a><a class="code" href="signals_8hh.html#a476cb068b113aa1db82054e6cff8c629">00379</a> <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> <a class="code" href="signals_8cpp.html#a476cb068b113aa1db82054e6cff8c629">sigTupleAccess</a>(<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> ts, <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> idx)              { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(SIGTUPLEACCESS, ts, idx); }
<a name="l00380"></a><a class="code" href="signals_8hh.html#a4b67af5515833346e41767d5726f5be4">00380</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a4b67af5515833346e41767d5726f5be4">isSigTupleAccess</a>(<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> s, <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>&amp; ts, <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>&amp; idx)  { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, SIGTUPLEACCESS, ts, idx); }
<a name="l00381"></a>00381 
<a name="l00382"></a>00382 <span class="comment">// create a tuple of signals</span>
<a name="l00383"></a><a class="code" href="signals_8hh.html#adfd97f3cceb8278df14e1a1597355d80">00383</a> <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> <a class="code" href="signals_8cpp.html#adfd97f3cceb8278df14e1a1597355d80">sigCartesianProd</a> (<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> s1, <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> s2)
<a name="l00384"></a>00384 {
<a name="l00385"></a>00385     <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>    l1, l2;
<a name="l00386"></a>00386     <span class="keywordtype">int</span>     m1, m2;
<a name="l00387"></a>00387 
<a name="l00388"></a>00388     <span class="keywordflow">if</span> (<a class="code" href="signals_8cpp.html#aa37973cfd2efa2c2db82019f10913b87">isSigTuple</a>(s1, &amp;m1, l1) &amp;&amp; (m1 == 0)) {
<a name="l00389"></a>00389         <span class="comment">// nothing to do</span>
<a name="l00390"></a>00390     } <span class="keywordflow">else</span> {
<a name="l00391"></a>00391         l1 = <a class="code" href="list_8hh.html#a5f132460535fda77b963f1c58a45f18f">list1</a>(s1);
<a name="l00392"></a>00392     }
<a name="l00393"></a>00393 
<a name="l00394"></a>00394     <span class="keywordflow">if</span> (<a class="code" href="signals_8cpp.html#aa37973cfd2efa2c2db82019f10913b87">isSigTuple</a>(s2, &amp;m2, l2) &amp;&amp; (m2 == 0)) {
<a name="l00395"></a>00395         <span class="comment">// nothing to do</span>
<a name="l00396"></a>00396     } <span class="keywordflow">else</span> {
<a name="l00397"></a>00397         l2 = <a class="code" href="list_8hh.html#a5f132460535fda77b963f1c58a45f18f">list1</a>(s2);
<a name="l00398"></a>00398     }
<a name="l00399"></a>00399 
<a name="l00400"></a>00400 
<a name="l00401"></a>00401     <span class="keywordflow">return</span> <a class="code" href="signals_8cpp.html#a09dda668fcc5260f97312e1df700e5ff">sigTuple</a>(0, <a class="code" href="list_8cpp.html#af0451cd6205a66bceb0e62f715d59533">concat</a>(l1,l2));
<a name="l00402"></a>00402 }
<a name="l00403"></a>00403 
<a name="l00404"></a>00404 
<a name="l00405"></a>00405 
<a name="l00412"></a><a class="code" href="signals_8hh.html#a3dfe37829af796260959bedfc9ca5c08">00412</a> <span class="keywordtype">bool</span> <a class="code" href="signals_8cpp.html#a3dfe37829af796260959bedfc9ca5c08" title="Test if exp is very simple that is it can&amp;#39;t be considered a real component.">verySimple</a>(<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> exp)
<a name="l00413"></a>00413 {
<a name="l00414"></a>00414     <span class="keywordtype">int</span>     i;
<a name="l00415"></a>00415     <span class="keywordtype">double</span>  r;
<a name="l00416"></a>00416     <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>    type, <a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>, file;
<a name="l00417"></a>00417     
<a name="l00418"></a>00418     <span class="keywordflow">return</span>  <a class="code" href="signals_8cpp.html#a75cc925deac1e031e75ae72271dd5995">isSigInt</a>(exp, &amp;i) 
<a name="l00419"></a>00419             ||  <a class="code" href="signals_8cpp.html#a305497ed8593020624204f9d359743f2">isSigReal</a>(exp, &amp;r)
<a name="l00420"></a>00420             ||  <a class="code" href="signals_8cpp.html#a38254d67a0541d98c6097fd51b22ea45">isSigInput</a>(exp, &amp;i)
<a name="l00421"></a>00421             ||  <a class="code" href="signals_8cpp.html#a71788aa9ccfc0aa598243fbef2a88f68">isSigFConst</a>(exp, type, name, file);
<a name="l00422"></a>00422 }
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Apr 28 23:59:59 2010 for FAUST compiler by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>