<!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: boxes.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 Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <h1>boxes.cpp</h1><a href="boxes_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 <a name="l00024"></a>00024 <span class="comment">/*****************************************************************************</span> <a name="l00025"></a>00025 <span class="comment">******************************************************************************</span> <a name="l00026"></a>00026 <span class="comment"></span> <a name="l00027"></a>00027 <span class="comment"></span> <a name="l00028"></a>00028 <span class="comment"> The Box Language</span> <a name="l00029"></a>00029 <span class="comment"></span> <a name="l00030"></a>00030 <span class="comment"></span> <a name="l00031"></a>00031 <span class="comment">******************************************************************************</span> <a name="l00032"></a>00032 <span class="comment">*****************************************************************************/</span> <a name="l00033"></a>00033 <a name="l00034"></a>00034 <a name="l00044"></a>00044 <span class="preprocessor">#include <stdio.h></span> <a name="l00045"></a>00045 <span class="preprocessor">#include <string.h></span> <a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="boxes_8hh.html">boxes.hh</a>"</span> <a name="l00047"></a>00047 <span class="preprocessor">#include "<a class="code" href="ppbox_8hh.html">ppbox.hh</a>"</span> <a name="l00048"></a>00048 <span class="preprocessor">#include "<a class="code" href="prim2_8hh.html">prim2.hh</a>"</span> <a name="l00049"></a>00049 <a name="l00050"></a>00050 <a name="l00051"></a>00051 <span class="comment">/*****************************************************************************</span> <a name="l00052"></a>00052 <span class="comment"> Identifiers</span> <a name="l00053"></a>00053 <span class="comment">*****************************************************************************/</span> <a name="l00054"></a><a class="code" href="boxes_8cpp.html#abeab81c528eaef806f524a989f04df57">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="boxes_8cpp.html#abeab81c528eaef806f524a989f04df57">BOXIDENT</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">"BoxIdent"</span>); <a name="l00055"></a>00055 <a name="l00056"></a><a class="code" href="boxes_8hh.html#ab32253e24dd40d91b770b381da0d35b1">00056</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="boxes_8cpp.html#ab32253e24dd40d91b770b381da0d35b1">boxIdent</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXIDENT, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="symbol_8hh.html#aaa87083235b70d1042e59ae25e0800d8" title="Returns (and creates if new) the symbol of name str.">symbol</a>(name)) ); } <a name="l00057"></a><a class="code" href="boxes_8hh.html#a15452e8c3476a87963f8a52cb1e905db">00057</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a15452e8c3476a87963f8a52cb1e905db">isBoxIdent</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-><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>(BOXIDENT); } <a name="l00058"></a><a class="code" href="boxes_8hh.html#a8763df52e9ba512f13612b18b1687d31">00058</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a15452e8c3476a87963f8a52cb1e905db">isBoxIdent</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="keyword">const</span> <span class="keywordtype">char</span>** str) <a name="l00059"></a>00059 { <a name="l00060"></a>00060 <a 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; <a class="code" href="classSymbol.html" title="Symbols are unique objects with a name stored in a hash table.">Sym</a> s; <a name="l00061"></a>00061 <span class="keywordflow">if</span> ( <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t0, BOXIDENT, t1) && <a class="code" href="node_8hh.html#ab714e75c43d570297ff54578dc7e9ce3">isSym</a>(t1-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(), &s) ) { <a name="l00062"></a>00062 *str = <a class="code" href="symbol_8hh.html#a8243134fbbd9d924ebbb3f833922e310" title="Returns the name of a symbol.">name</a>(s); <a name="l00063"></a>00063 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00064"></a>00064 } <span class="keywordflow">else</span> { <a name="l00065"></a>00065 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00066"></a>00066 } <a name="l00067"></a>00067 } <a name="l00068"></a>00068 <a name="l00069"></a>00069 <a name="l00070"></a>00070 <span class="comment">/*****************************************************************************</span> <a name="l00071"></a>00071 <span class="comment"> Numbers</span> <a name="l00072"></a>00072 <span class="comment">*****************************************************************************/</span> <a name="l00073"></a>00073 <a name="l00074"></a><a class="code" href="boxes_8hh.html#add4e510a062bf67762e0ae3ac6112b81">00074</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="boxes_8cpp.html#add4e510a062bf67762e0ae3ac6112b81">boxInt</a>(<span class="keywordtype">int</span> n) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(n); } <a name="l00075"></a><a class="code" href="boxes_8hh.html#a8317435afefe21442cf381334d61bf58">00075</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="boxes_8cpp.html#a8317435afefe21442cf381334d61bf58">boxReal</a>(<span class="keywordtype">double</span> n) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(n); } <a name="l00076"></a>00076 <a name="l00077"></a><a class="code" href="boxes_8hh.html#a7904414896442fcfa0947156b6563d52">00077</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a7904414896442fcfa0947156b6563d52">isBoxInt</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> <a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(t-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()); } <a name="l00078"></a><a class="code" href="boxes_8hh.html#a292a68d93ea73f703bc880cca4d01bc2">00078</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a292a68d93ea73f703bc880cca4d01bc2">isBoxReal</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> <a class="code" href="node_8hh.html#aab6c20fb5dce797e97ac8ec8591258af">isDouble</a>(t-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>()); } <a name="l00079"></a>00079 <a name="l00080"></a><a class="code" href="boxes_8hh.html#a5460309eb4c733fe04e11b0fa4218ca1">00080</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a7904414896442fcfa0947156b6563d52">isBoxInt</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-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(), i); } <a name="l00081"></a><a class="code" href="boxes_8hh.html#a127e93f0bfa5acbb202ab74dfdc123ab">00081</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a292a68d93ea73f703bc880cca4d01bc2">isBoxReal</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-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(), r); } <a name="l00082"></a>00082 <a name="l00083"></a>00083 <a name="l00084"></a>00084 <span class="comment">/*****************************************************************************</span> <a name="l00085"></a>00085 <span class="comment"> Wire and Cut</span> <a name="l00086"></a>00086 <span class="comment">*****************************************************************************/</span> <a name="l00087"></a>00087 <a name="l00088"></a><a class="code" href="boxes_8cpp.html#adb4a15094fba878376aa0cf4b048c5df">00088</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="boxes_8cpp.html#adb4a15094fba878376aa0cf4b048c5df">BOXCUT</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">"BoxCut"</span>); <a name="l00089"></a><a class="code" href="boxes_8hh.html#a2f7292844af8b87ae01fa10f654c7fc5">00089</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="boxes_8cpp.html#a2f7292844af8b87ae01fa10f654c7fc5">boxCut</a>() { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXCUT); } <a name="l00090"></a><a class="code" href="boxes_8hh.html#acf54df78e7e909644907619a03b3f695">00090</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#acf54df78e7e909644907619a03b3f695">isBoxCut</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> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXCUT); } <a name="l00091"></a>00091 <a name="l00092"></a><a class="code" href="boxes_8cpp.html#adf1f890b425facd35eb3981cbdc7bf1e">00092</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="boxes_8cpp.html#adf1f890b425facd35eb3981cbdc7bf1e">BOXWIRE</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">"BoxWire"</span>); <a name="l00093"></a><a class="code" href="boxes_8hh.html#a34d15b5662d2828e5c1ff213bbb91598">00093</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="boxes_8cpp.html#a34d15b5662d2828e5c1ff213bbb91598">boxWire</a>() { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXWIRE); } <a name="l00094"></a><a class="code" href="boxes_8hh.html#ac32713127f8c8c3cb26e28a31580b257">00094</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ac32713127f8c8c3cb26e28a31580b257">isBoxWire</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> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXWIRE); } <a name="l00095"></a>00095 <a name="l00096"></a>00096 <a name="l00097"></a>00097 <span class="comment">/*****************************************************************************</span> <a name="l00098"></a>00098 <span class="comment"> Symbolic Boxes with symbolic slots</span> <a name="l00099"></a>00099 <span class="comment">*****************************************************************************/</span> <a name="l00100"></a>00100 <a name="l00101"></a><a class="code" href="boxes_8cpp.html#afd25c9a107e448a1e6d470d34d0959dc">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="boxes_8cpp.html#afd25c9a107e448a1e6d470d34d0959dc">BOXSLOT</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">"BoxSlot"</span>); <a name="l00102"></a>00102 <a name="l00103"></a><a class="code" href="boxes_8hh.html#a25d857ff11c486793e99095d26ed36ba">00103</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="boxes_8cpp.html#a25d857ff11c486793e99095d26ed36ba">boxSlot</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXSLOT,<a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<span class="keywordtype">id</span>)); } <a name="l00104"></a><a class="code" href="boxes_8hh.html#af4b23a35faec0884c4591ff92576c3d4">00104</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#af4b23a35faec0884c4591ff92576c3d4">isBoxSlot</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> w; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXSLOT,w); } <a name="l00105"></a><a class="code" href="boxes_8hh.html#a7914adfeb6137b29d9ffc2e51e6c81c0">00105</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#af4b23a35faec0884c4591ff92576c3d4">isBoxSlot</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>* <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> w; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXSLOT,w) && <a class="code" href="node_8hh.html#a8c9b968ac68f6cac1c361002da8afe99">isInt</a>(w-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),id); } <a name="l00106"></a>00106 <a name="l00107"></a>00107 <a name="l00108"></a><a class="code" href="boxes_8cpp.html#a9205d186c9ec22c41965edcf98cf66fa">00108</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="boxes_8cpp.html#a9205d186c9ec22c41965edcf98cf66fa">BOXSYMBOLIC</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">"BoxSymbolic"</span>); <a name="l00109"></a>00109 <a name="l00110"></a><a class="code" href="boxes_8hh.html#a2df8043d88f55391102ea7878a0a9b5e">00110</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="boxes_8cpp.html#a2df8043d88f55391102ea7878a0a9b5e">boxSymbolic</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> slot, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> body) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXSYMBOLIC,slot, body); } <a name="l00111"></a><a class="code" href="boxes_8hh.html#ab73899d732fd2181be3d72f28c11ab3d">00111</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ab73899d732fd2181be3d72f28c11ab3d">isBoxSymbolic</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> slot, body; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXSYMBOLIC, slot, body); } <a name="l00112"></a><a class="code" href="boxes_8hh.html#a08da0a2c862372b6ade86a87dee0911d">00112</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ab73899d732fd2181be3d72f28c11ab3d">isBoxSymbolic</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>& slot, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& body) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXSYMBOLIC, slot, body); } <a name="l00113"></a>00113 <a name="l00114"></a>00114 <a name="l00115"></a>00115 <span class="comment">/*****************************************************************************</span> <a name="l00116"></a>00116 <span class="comment"> Composition of Boxes</span> <a name="l00117"></a>00117 <span class="comment">*****************************************************************************/</span> <a name="l00118"></a>00118 <a name="l00119"></a><a class="code" href="boxes_8cpp.html#adf2eea586e80954eed1681230c0054ae">00119</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="boxes_8cpp.html#adf2eea586e80954eed1681230c0054ae">BOXSEQ</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">"BoxSeq"</span>); <a name="l00120"></a><a class="code" href="boxes_8hh.html#ad9b1c09a1b4f662e3ebbbbf1e8f4878f">00120</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="boxes_8cpp.html#ad9b1c09a1b4f662e3ebbbbf1e8f4878f">boxSeq</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, <a 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>(BOXSEQ, x, y); } <a name="l00121"></a><a class="code" href="boxes_8hh.html#ad7c79f7a1c0aa3109ab0548e59194d48">00121</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ad7c79f7a1c0aa3109ab0548e59194d48">isBoxSeq</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, <a 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXSEQ, x, y); } <a name="l00122"></a>00122 <a name="l00123"></a><a class="code" href="boxes_8cpp.html#add474ef43191a7de14c1eb9f7d5d419d">00123</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="boxes_8cpp.html#add474ef43191a7de14c1eb9f7d5d419d">BOXPAR</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">"BoxPar"</span>); <a name="l00124"></a><a class="code" href="boxes_8hh.html#a9d0633a71eaa42ce8af4decc9e172321">00124</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="boxes_8cpp.html#a9d0633a71eaa42ce8af4decc9e172321">boxPar</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, <a 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>(BOXPAR, x, y); } <a name="l00125"></a><a class="code" href="boxes_8hh.html#a8a24d365092cfdabb32218ab8e446dc6">00125</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a8a24d365092cfdabb32218ab8e446dc6">isBoxPar</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, <a 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXPAR, x, y); } <a name="l00126"></a>00126 <a name="l00127"></a><a class="code" href="boxes_8cpp.html#abefb4b445ceb5d6b5530d0b5fadd7890">00127</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="boxes_8cpp.html#abefb4b445ceb5d6b5530d0b5fadd7890">BOXREC</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">"BoxRec"</span>); <a name="l00128"></a><a class="code" href="boxes_8hh.html#aa52c8bd74ff76718393d955dce780197">00128</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="boxes_8cpp.html#aa52c8bd74ff76718393d955dce780197">boxRec</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, <a 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>(BOXREC, x, y); } <a name="l00129"></a><a class="code" href="boxes_8hh.html#a97de4dc9680e2d0820a5d1d18255fa35">00129</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a97de4dc9680e2d0820a5d1d18255fa35">isBoxRec</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, <a 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXREC, x, y); } <a name="l00130"></a>00130 <a name="l00131"></a><a class="code" href="boxes_8cpp.html#a08e2b3e2e7b6fe67a15e3df15a6ae407">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="boxes_8cpp.html#a08e2b3e2e7b6fe67a15e3df15a6ae407">BOXSPLIT</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">"BoxSplit"</span>); <a name="l00132"></a><a class="code" href="boxes_8hh.html#a62c680e700c94c5738513b2f79af180a">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="boxes_8cpp.html#a62c680e700c94c5738513b2f79af180a">boxSplit</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, <a 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>(BOXSPLIT, x, y); } <a name="l00133"></a><a class="code" href="boxes_8hh.html#a654a2a97bdc734448e669899976bdbd0">00133</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a654a2a97bdc734448e669899976bdbd0">isBoxSplit</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, <a 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXSPLIT, x, y); } <a name="l00134"></a>00134 <a name="l00135"></a><a class="code" href="boxes_8cpp.html#a3242fcf0415cbcb331d271352e9e436d">00135</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="boxes_8cpp.html#a3242fcf0415cbcb331d271352e9e436d">BOXMERGE</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">"BoxMerge"</span>); <a name="l00136"></a><a class="code" href="boxes_8hh.html#a748692b443f7f0b37e7f0f63dc98be4a">00136</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="boxes_8cpp.html#a748692b443f7f0b37e7f0f63dc98be4a">boxMerge</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, <a 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>(BOXMERGE, x, y); } <a name="l00137"></a><a class="code" href="boxes_8hh.html#a7b7d0ce5bacf1a799517f7b50dfe7a3e">00137</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a7b7d0ce5bacf1a799517f7b50dfe7a3e">isBoxMerge</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, <a 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXMERGE, x, y); } <a name="l00138"></a>00138 <a name="l00139"></a>00139 <a name="l00140"></a>00140 <span class="comment">/*****************************************************************************</span> <a name="l00141"></a>00141 <span class="comment"> Algorithmic Composition of Boxes</span> <a name="l00142"></a>00142 <span class="comment">*****************************************************************************/</span> <a name="l00143"></a>00143 <a name="l00144"></a><a class="code" href="boxes_8cpp.html#a1704bd19c6262ebf3eb84f3a08b3fc1d">00144</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="boxes_8cpp.html#a1704bd19c6262ebf3eb84f3a08b3fc1d">BOXIPAR</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">"BoxIPar"</span>); <a name="l00145"></a><a class="code" href="boxes_8cpp.html#a0d3a9baac887105f9674825faddef12b">00145</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="boxes_8cpp.html#a0d3a9baac887105f9674825faddef12b">BOXISEQ</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">"BoxISeq"</span>); <a name="l00146"></a><a class="code" href="boxes_8cpp.html#aeed8dbe8a71842599e37647deda58581">00146</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="boxes_8cpp.html#aeed8dbe8a71842599e37647deda58581">BOXISUM</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">"BoxISum"</span>); <a name="l00147"></a><a class="code" href="boxes_8cpp.html#a70fa513567be9eb7036d2e909f813e03">00147</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="boxes_8cpp.html#a70fa513567be9eb7036d2e909f813e03">BOXIPROD</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">"BoxIProd"</span>); <a name="l00148"></a>00148 <a name="l00149"></a><a class="code" href="boxes_8hh.html#a1c493db9453686ddb1376df07b30a79e">00149</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="boxes_8cpp.html#a1c493db9453686ddb1376df07b30a79e">boxIPar</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, <a 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, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> z) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXIPAR, x, y, z); } <a name="l00150"></a><a class="code" href="boxes_8hh.html#a0a0c6fc221345a893a51b823127e5576">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="boxes_8cpp.html#a0a0c6fc221345a893a51b823127e5576">boxISeq</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, <a 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, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> z) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXISEQ, x, y, z); } <a name="l00151"></a><a class="code" href="boxes_8hh.html#a0799844fbfde14e41dd3f4b5f027f5ef">00151</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="boxes_8cpp.html#a0799844fbfde14e41dd3f4b5f027f5ef">boxISum</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, <a 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, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> z) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXISUM, x, y, z); } <a name="l00152"></a><a class="code" href="boxes_8hh.html#a3d760626a8436a3e516b4aec69bd9c92">00152</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="boxes_8cpp.html#a3d760626a8436a3e516b4aec69bd9c92">boxIProd</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, <a 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, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> z) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXIPROD, x, y, z); } <a name="l00153"></a>00153 <a name="l00154"></a><a class="code" href="boxes_8hh.html#aaee8867be9aa585c10a24e8bcfda8be8">00154</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aaee8867be9aa585c10a24e8bcfda8be8">isBoxIPar</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, <a 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, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& z) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXIPAR, x, y, z); } <a name="l00155"></a><a class="code" href="boxes_8hh.html#a941c97af1f77596438700760de8556b4">00155</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a941c97af1f77596438700760de8556b4">isBoxISeq</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, <a 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, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& z) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXISEQ, x, y, z); } <a name="l00156"></a><a class="code" href="boxes_8hh.html#adb2b3be73061b6840374339d0a111dd5">00156</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#adb2b3be73061b6840374339d0a111dd5">isBoxISum</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, <a 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, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& z) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXISUM, x, y, z); } <a name="l00157"></a><a class="code" href="boxes_8hh.html#ac0013317ab94b61d9e25f026316487b3">00157</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ac0013317ab94b61d9e25f026316487b3">isBoxIProd</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, <a 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, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& z) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXIPROD, x, y, z); } <a name="l00158"></a>00158 <a name="l00159"></a>00159 <a name="l00160"></a>00160 <a name="l00161"></a>00161 <span class="comment">/*****************************************************************************</span> <a name="l00162"></a>00162 <span class="comment"> Lambda-Calculus of Boxes</span> <a name="l00163"></a>00163 <span class="comment">*****************************************************************************/</span> <a name="l00164"></a><a class="code" href="boxes_8cpp.html#a5e5364628594a0b96c63f6fb0aeac765">00164</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="boxes_8cpp.html#a5e5364628594a0b96c63f6fb0aeac765">BOXABSTR</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">"BoxAbstr"</span>); <a name="l00165"></a><a class="code" href="boxes_8cpp.html#a09e686f54f81b4d9f36efc2a31af6047">00165</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="boxes_8cpp.html#a09e686f54f81b4d9f36efc2a31af6047">BOXAPPL</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">"BoxAppl"</span>); <a name="l00166"></a><a class="code" href="boxes_8cpp.html#aa62ea2994b4efda6ded3aeb6f0caa3d0">00166</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="boxes_8cpp.html#aa62ea2994b4efda6ded3aeb6f0caa3d0">CLOSURE</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">"Closure"</span>); <a name="l00167"></a><a class="code" href="boxes_8cpp.html#a7bd604a4c313e5fe3e57156a9b5620f4">00167</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="boxes_8cpp.html#a7bd604a4c313e5fe3e57156a9b5620f4">BOXERROR</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">"BoxError"</span>); <a name="l00168"></a><a class="code" href="boxes_8cpp.html#aa2c3bcc9c5daf0a1995e0bc63553bfdd">00168</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="boxes_8cpp.html#aa2c3bcc9c5daf0a1995e0bc63553bfdd">BOXACCESS</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">"BoxAccess"</span>); <a name="l00169"></a>00169 <a name="l00170"></a><a class="code" href="boxes_8hh.html#a7b9ba7eb8ed44f3f3a35872401156e50">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="boxes_8cpp.html#a7b9ba7eb8ed44f3f3a35872401156e50">boxAbstr</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, <a 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>(BOXABSTR, x, y); } <a name="l00171"></a><a class="code" href="boxes_8hh.html#a3f94156c5c40d8dd7a97a9ad8d13dbb2">00171</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="boxes_8cpp.html#a3f94156c5c40d8dd7a97a9ad8d13dbb2">boxAppl</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, <a 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>(BOXAPPL, x, y); } <a name="l00172"></a>00172 <a name="l00173"></a><a class="code" href="boxes_8hh.html#ab0b15f29743df4080b8b1c38e64a2cc1">00173</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ab0b15f29743df4080b8b1c38e64a2cc1">isBoxAbstr</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-><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>(BOXABSTR); } <a name="l00174"></a><a class="code" href="boxes_8hh.html#a25bfc1d2b8e1649e3f5ca468771c08f6">00174</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a25bfc1d2b8e1649e3f5ca468771c08f6">isBoxAppl</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-><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>(BOXAPPL); } <a name="l00175"></a>00175 <a name="l00176"></a><a class="code" href="boxes_8hh.html#aa0fcd8b2f86901073a866979a72afa1f">00176</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ab0b15f29743df4080b8b1c38e64a2cc1">isBoxAbstr</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, <a 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXABSTR, x, y); } <a name="l00177"></a><a class="code" href="boxes_8hh.html#a4c7997963efbaa51994edc85a0b9089f">00177</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a25bfc1d2b8e1649e3f5ca468771c08f6">isBoxAppl</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, <a 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXAPPL, x, y); } <a name="l00178"></a>00178 <a name="l00179"></a><a class="code" href="boxes_8hh.html#a18629ff8f771a4eb8b2a6666b56de271">00179</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="boxes_8cpp.html#afcbfa6cdd8ea0fdfd9267be467cc8087">buildBoxAbstr</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> largs, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> body) <a name="l00180"></a>00180 { <a name="l00181"></a>00181 <span class="keywordflow">if</span> (<a class="code" href="list_8hh.html#a2569c3a07bbbfa55e0afde62de62aeec">isNil</a>(largs)) { <a name="l00182"></a>00182 <span class="keywordflow">return</span> body; <a name="l00183"></a>00183 } <span class="keywordflow">else</span> { <a name="l00184"></a>00184 <span class="keywordflow">return</span> <a class="code" href="boxes_8cpp.html#afcbfa6cdd8ea0fdfd9267be467cc8087">buildBoxAbstr</a>(<a class="code" href="list_8hh.html#a4075748f5c7156306ec898795313a2e0">tl</a>(largs), <a class="code" href="boxes_8cpp.html#a7b9ba7eb8ed44f3f3a35872401156e50">boxAbstr</a>(<a class="code" href="list_8hh.html#a067ad6f83087b420a1c44e48e56be389">hd</a>(largs), body)); <a name="l00185"></a>00185 } <a name="l00186"></a>00186 } <a name="l00187"></a>00187 <span class="preprocessor">#if 0</span> <a name="l00188"></a>00188 <span class="preprocessor"></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> <a class="code" href="boxes_8cpp.html#af97ac77ad2913b4d86804440f031912e">buildBoxAppl</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> fun, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> revarglist) <a name="l00189"></a>00189 { <a name="l00190"></a>00190 <span class="keywordflow">if</span> (<a class="code" href="list_8hh.html#a2569c3a07bbbfa55e0afde62de62aeec">isNil</a>(revarglist)) { <a name="l00191"></a>00191 <span class="keywordflow">return</span> fun; <a name="l00192"></a>00192 } <span class="keywordflow">else</span> { <a name="l00193"></a>00193 <span class="keywordflow">return</span> <a class="code" href="boxes_8cpp.html#a3f94156c5c40d8dd7a97a9ad8d13dbb2">boxAppl</a>(<a class="code" href="boxes_8cpp.html#af97ac77ad2913b4d86804440f031912e">buildBoxAppl</a>(fun, <a class="code" href="list_8hh.html#a4075748f5c7156306ec898795313a2e0">tl</a>(revarglist)), <a class="code" href="list_8hh.html#a067ad6f83087b420a1c44e48e56be389">hd</a>(revarglist)); <a name="l00194"></a>00194 } <a name="l00195"></a>00195 } <a name="l00196"></a>00196 <span class="preprocessor">#else</span> <a name="l00197"></a><a class="code" href="boxes_8hh.html#ab3169568c6fd2f42160b8958f152fac2">00197</a> <span class="preprocessor"></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> <a class="code" href="boxes_8cpp.html#af97ac77ad2913b4d86804440f031912e">buildBoxAppl</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> fun, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> revarglist) <a name="l00198"></a>00198 { <a name="l00199"></a>00199 <span class="keywordflow">if</span> (<a class="code" href="list_8hh.html#a2569c3a07bbbfa55e0afde62de62aeec">isNil</a> (revarglist)) exit(1); <span class="comment">// a revoir !!!!!!</span> <a name="l00200"></a>00200 <span class="keywordflow">return</span> <a class="code" href="boxes_8cpp.html#a3f94156c5c40d8dd7a97a9ad8d13dbb2">boxAppl</a>(fun, revarglist); <a name="l00201"></a>00201 } <a name="l00202"></a>00202 <span class="preprocessor">#endif</span> <a name="l00203"></a>00203 <span class="preprocessor"></span> <a name="l00204"></a><a class="code" href="boxes_8hh.html#a321a193061eae875a5a8763bfd992f38">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="boxes_8cpp.html#a321a193061eae875a5a8763bfd992f38">closure</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> abstr, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> genv, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> vis, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> lenv) <a name="l00205"></a>00205 { <a name="l00206"></a>00206 <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(CLOSURE, abstr, genv, vis, lenv); <a name="l00207"></a>00207 } <a name="l00208"></a>00208 <a name="l00209"></a><a class="code" href="boxes_8hh.html#a06b09fa05baf1a2567fb4aae3d1ce544">00209</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a06b09fa05baf1a2567fb4aae3d1ce544">isClosure</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>& abstr, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& genv, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& vis, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& lenv) <a name="l00210"></a>00210 { <a name="l00211"></a>00211 <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, CLOSURE, abstr, genv, vis, lenv); <a name="l00212"></a>00212 } <a name="l00213"></a>00213 <a name="l00214"></a><a class="code" href="boxes_8hh.html#ab4f4d00d6bc173a3c9d20cd7054ffdb7">00214</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="boxes_8cpp.html#ab4f4d00d6bc173a3c9d20cd7054ffdb7">boxError</a>() <a name="l00215"></a>00215 { <a name="l00216"></a>00216 <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXERROR); <a name="l00217"></a>00217 } <a name="l00218"></a>00218 <a name="l00219"></a><a class="code" href="boxes_8hh.html#a0f492ef7453000e0b40455ac32bd76d4">00219</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a0f492ef7453000e0b40455ac32bd76d4">isBoxError</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="l00220"></a>00220 { <a name="l00221"></a>00221 <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXERROR); <a name="l00222"></a>00222 } <a name="l00223"></a>00223 <a name="l00224"></a>00224 <a name="l00225"></a><a class="code" href="boxes_8hh.html#aee690e95672b37e13979d9fdfb30b9f8">00225</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="boxes_8cpp.html#aee690e95672b37e13979d9fdfb30b9f8">boxAccess</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 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>) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXACCESS, exp, <span class="keywordtype">id</span>); } <a name="l00226"></a><a class="code" href="boxes_8hh.html#a342ac3176f21f2f11931cd0b004d78d3">00226</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a342ac3176f21f2f11931cd0b004d78d3">isBoxAccess</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>& exp, <a 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>) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXACCESS, exp, <span class="keywordtype">id</span>); } <a name="l00227"></a>00227 <a name="l00228"></a>00228 <a name="l00229"></a>00229 <span class="comment">/*****************************************************************************</span> <a name="l00230"></a>00230 <span class="comment"> Boxes with local definitions</span> <a name="l00231"></a>00231 <span class="comment">*****************************************************************************/</span> <a name="l00232"></a><a class="code" href="boxes_8cpp.html#a8595885607f755db358bb7c75915b50f">00232</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="boxes_8cpp.html#a8595885607f755db358bb7c75915b50f">BOXWITHLOCALDEF</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">"BoxWithLocalDef"</span>); <a name="l00233"></a>00233 <a name="l00234"></a><a class="code" href="boxes_8hh.html#a30c72e68e6f8b5cb2238c457b5ffbee1">00234</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="boxes_8cpp.html#a30c72e68e6f8b5cb2238c457b5ffbee1">boxWithLocalDef</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> body, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> ldef) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXWITHLOCALDEF, body, ldef); } <a name="l00235"></a><a class="code" href="boxes_8hh.html#ab7f1921185dc888aee8f041a96989eb3">00235</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ab7f1921185dc888aee8f041a96989eb3">isBoxWithLocalDef</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>& body, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& ldef) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(t, BOXWITHLOCALDEF, body, ldef); } <a name="l00236"></a>00236 <a name="l00237"></a>00237 <a name="l00238"></a>00238 <span class="comment">/*****************************************************************************</span> <a name="l00239"></a>00239 <span class="comment"> Modules</span> <a name="l00240"></a>00240 <span class="comment">*****************************************************************************/</span> <a name="l00241"></a>00241 <a name="l00242"></a><a class="code" href="boxes_8cpp.html#ac34c3041479e58f9e09f7346a0e8d881">00242</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="boxes_8cpp.html#ac34c3041479e58f9e09f7346a0e8d881">BOXENVIRONMENT</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">"BoxEnvironment"</span>); <a name="l00243"></a>00243 <a name="l00244"></a><a class="code" href="boxes_8hh.html#a133b62e31befea771cf81e68577ac59b">00244</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="boxes_8cpp.html#a133b62e31befea771cf81e68577ac59b">boxEnvironment</a> () { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXENVIRONMENT); } <a name="l00245"></a><a class="code" href="boxes_8hh.html#a37fc5c4fbb1931425e6bfe12f637ee87">00245</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a37fc5c4fbb1931425e6bfe12f637ee87">isBoxEnvironment</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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXENVIRONMENT); } <a name="l00246"></a>00246 <a name="l00247"></a><a class="code" href="boxes_8cpp.html#aa3519c62a1f99bc2a6944b8b472d2c45">00247</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="boxes_8cpp.html#aa3519c62a1f99bc2a6944b8b472d2c45">BOXCOMPONENT</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">"BoxComponent"</span>); <a name="l00248"></a>00248 <a name="l00249"></a><a class="code" href="boxes_8hh.html#adf194007a4d3813eecbedd0625f701e3">00249</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="boxes_8cpp.html#adf194007a4d3813eecbedd0625f701e3">boxComponent</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> filename) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXCOMPONENT, filename); } <a name="l00250"></a><a class="code" href="boxes_8hh.html#abc1bd1c9718505ba602a6b5ed9d918b6">00250</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#abc1bd1c9718505ba602a6b5ed9d918b6">isBoxComponent</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>& filename) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXCOMPONENT, filename); } <a name="l00251"></a>00251 <a name="l00252"></a><a class="code" href="boxes_8cpp.html#a32826dd9ccffaf0653c3e23b9b6d04ff">00252</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="boxes_8cpp.html#a32826dd9ccffaf0653c3e23b9b6d04ff">BOXLIBRARY</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">"BoxLibrary"</span>); <a name="l00253"></a>00253 <a name="l00254"></a><a class="code" href="boxes_8hh.html#a37a3b23cf6380ff81a22c207a345a061">00254</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="boxes_8cpp.html#a37a3b23cf6380ff81a22c207a345a061">boxLibrary</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> filename) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXLIBRARY, filename); } <a name="l00255"></a><a class="code" href="boxes_8hh.html#a8a529d26442422fd10a2c1a8ed7d7044">00255</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a8a529d26442422fd10a2c1a8ed7d7044">isBoxLibrary</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>& filename) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXLIBRARY, filename); } <a name="l00256"></a>00256 <a name="l00257"></a>00257 <a name="l00258"></a><a class="code" href="boxes_8cpp.html#a80a6917dc1197dbf0ef37cbf9fc045c7">00258</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="boxes_8cpp.html#a80a6917dc1197dbf0ef37cbf9fc045c7">IMPORTFILE</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">"ImportFile"</span>); <a name="l00259"></a>00259 <a name="l00260"></a><a class="code" href="boxes_8hh.html#a34a145266d5098db2ea93d82b6040704">00260</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="boxes_8cpp.html#a34a145266d5098db2ea93d82b6040704">importFile</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> filename) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(IMPORTFILE, filename); } <a name="l00261"></a><a class="code" href="boxes_8hh.html#a669c5f5ddf58b6f22e1497e24577469b">00261</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a669c5f5ddf58b6f22e1497e24577469b">isImportFile</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>& filename) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, IMPORTFILE, filename); } <a name="l00262"></a>00262 <a name="l00263"></a>00263 <a name="l00264"></a>00264 <span class="comment">/*****************************************************************************</span> <a name="l00265"></a>00265 <span class="comment"> External Primitive Boxes (n -> 1)</span> <a name="l00266"></a>00266 <span class="comment">*****************************************************************************/</span> <a name="l00267"></a>00267 <a name="l00268"></a><a class="code" href="boxes_8cpp.html#a35eeff49ee32116be544c9281010e696">00268</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="boxes_8cpp.html#a35eeff49ee32116be544c9281010e696">BOXPRIM0</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">"BoxPrim0"</span>); <a name="l00269"></a><a class="code" href="boxes_8hh.html#a2b5637e4d50a0d99d6a301b4670ba18f">00269</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="boxes_8cpp.html#a2b5637e4d50a0d99d6a301b4670ba18f">boxPrim0</a>(<a class="code" href="boxes_8hh.html#a52afc5e73408f761d5d61926ced73eef">prim0</a> foo) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXPRIM0, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>((<span class="keywordtype">void</span>*)foo)); } <a name="l00270"></a><a class="code" href="boxes_8hh.html#af6596889fd117b00a85ca9ee837f2988">00270</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#af6596889fd117b00a85ca9ee837f2988">isBoxPrim0</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; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPRIM0, t); } <a name="l00271"></a><a class="code" href="boxes_8hh.html#a70e003707a2fffb29395d50dce334f54">00271</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#af6596889fd117b00a85ca9ee837f2988">isBoxPrim0</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="boxes_8hh.html#a52afc5e73408f761d5d61926ced73eef">prim0</a>* p) { <a 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, BOXPRIM0, t) && <a class="code" href="node_8hh.html#ad77dd53dfdf27d36a561a7ccbcb27708">isPointer</a>(t-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),(<span class="keywordtype">void</span>**)p); } <a name="l00272"></a>00272 <a name="l00273"></a><a class="code" href="boxes_8cpp.html#a6436154696a137a23b75be62d0b3b210">00273</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="boxes_8cpp.html#a6436154696a137a23b75be62d0b3b210">BOXPRIM1</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">"BoxPrim1"</span>); <a name="l00274"></a><a class="code" href="boxes_8hh.html#a7f6362239500f480c0a61d4293f8c9e2">00274</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="boxes_8cpp.html#a7f6362239500f480c0a61d4293f8c9e2">boxPrim1</a>(<a class="code" href="boxes_8hh.html#ad7497a9790f9d05878096b459487a510">prim1</a> foo) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXPRIM1, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>((<span class="keywordtype">void</span>*)foo)); } <a name="l00275"></a><a class="code" href="boxes_8hh.html#a261369dc82c96fbfa1978859ca4cf2e3">00275</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a261369dc82c96fbfa1978859ca4cf2e3">isBoxPrim1</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; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPRIM1, t); } <a name="l00276"></a><a class="code" href="boxes_8hh.html#a43d2a4b32ffcc8b9ace23187915a1222">00276</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a261369dc82c96fbfa1978859ca4cf2e3">isBoxPrim1</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="boxes_8hh.html#ad7497a9790f9d05878096b459487a510">prim1</a>* p) { <a 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, BOXPRIM1, t) && <a class="code" href="node_8hh.html#ad77dd53dfdf27d36a561a7ccbcb27708">isPointer</a>(t-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),(<span class="keywordtype">void</span>**)p); } <a name="l00277"></a>00277 <a name="l00278"></a><a class="code" href="boxes_8cpp.html#a3251a8e0dc0ae6d77db90759cac48597">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="boxes_8cpp.html#a3251a8e0dc0ae6d77db90759cac48597">BOXPRIM2</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">"BoxPrim2"</span>); <a name="l00279"></a><a class="code" href="boxes_8hh.html#af5b10ed7352e45d75eff6110e04b64a1">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="boxes_8cpp.html#af5b10ed7352e45d75eff6110e04b64a1">boxPrim2</a>(<a class="code" href="boxes_8hh.html#abc5863a46190002232036f027c5acfdb">prim2</a> foo) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXPRIM2, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>((<span class="keywordtype">void</span>*)foo)); } <a name="l00280"></a><a class="code" href="boxes_8hh.html#a9c79105875b22a5b09a0b6f768375d09">00280</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a9c79105875b22a5b09a0b6f768375d09">isBoxPrim2</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; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPRIM2, t); } <a name="l00281"></a><a class="code" href="boxes_8hh.html#af67d87b2e24763d9f8dada435623a418">00281</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a9c79105875b22a5b09a0b6f768375d09">isBoxPrim2</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="boxes_8hh.html#abc5863a46190002232036f027c5acfdb">prim2</a>* p) { <a 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, BOXPRIM2, t) && <a class="code" href="node_8hh.html#ad77dd53dfdf27d36a561a7ccbcb27708">isPointer</a>(t-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),(<span class="keywordtype">void</span>**)p); } <a name="l00282"></a>00282 <a name="l00283"></a><a class="code" href="boxes_8cpp.html#add2012e7cc7fa892a41a06e2179d2245">00283</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="boxes_8cpp.html#add2012e7cc7fa892a41a06e2179d2245">BOXPRIM3</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">"BoxPrim3"</span>); <a name="l00284"></a><a class="code" href="boxes_8hh.html#a639a768e209dadc349aae010d85e42d5">00284</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="boxes_8cpp.html#a639a768e209dadc349aae010d85e42d5">boxPrim3</a>(<a class="code" href="boxes_8hh.html#a2769ccced25ffcb2997204594bb52f0e">prim3</a> foo) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXPRIM3, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>((<span class="keywordtype">void</span>*)foo)); } <a name="l00285"></a><a class="code" href="boxes_8hh.html#a826142cbc8a1a762612f22273303794e">00285</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a826142cbc8a1a762612f22273303794e">isBoxPrim3</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; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPRIM3, t); } <a name="l00286"></a><a class="code" href="boxes_8hh.html#a3ef2f20df5d0676c97cd41a6bf1ddd15">00286</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a826142cbc8a1a762612f22273303794e">isBoxPrim3</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="boxes_8hh.html#a2769ccced25ffcb2997204594bb52f0e">prim3</a>* p) { <a 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, BOXPRIM3, t) && <a class="code" href="node_8hh.html#ad77dd53dfdf27d36a561a7ccbcb27708">isPointer</a>(t-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),(<span class="keywordtype">void</span>**)p); } <a name="l00287"></a>00287 <a name="l00288"></a><a class="code" href="boxes_8cpp.html#a554d069083f25da0ee252f01d903b1a1">00288</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="boxes_8cpp.html#a554d069083f25da0ee252f01d903b1a1">BOXPRIM4</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">"BoxPrim4"</span>); <a name="l00289"></a><a class="code" href="boxes_8hh.html#acbbd30c14851f8ee0d632d4ca4ed893d">00289</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="boxes_8cpp.html#acbbd30c14851f8ee0d632d4ca4ed893d">boxPrim4</a>(<a class="code" href="boxes_8hh.html#a55608c6610d13a8ccd575de80c191b31">prim4</a> foo) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXPRIM4, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>((<span class="keywordtype">void</span>*)foo)); } <a name="l00290"></a><a class="code" href="boxes_8hh.html#a5cae175b6153210d76c153feb2af908c">00290</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a5cae175b6153210d76c153feb2af908c">isBoxPrim4</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; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPRIM4, t); } <a name="l00291"></a><a class="code" href="boxes_8hh.html#a112e6328782703e071143c3ac1e34d7c">00291</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a5cae175b6153210d76c153feb2af908c">isBoxPrim4</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="boxes_8hh.html#a55608c6610d13a8ccd575de80c191b31">prim4</a>* p) { <a 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, BOXPRIM4, t) && <a class="code" href="node_8hh.html#ad77dd53dfdf27d36a561a7ccbcb27708">isPointer</a>(t-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),(<span class="keywordtype">void</span>**)p); } <a name="l00292"></a>00292 <a name="l00293"></a><a class="code" href="boxes_8cpp.html#ac5968324d111135ea6b43400d709ec30">00293</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="boxes_8cpp.html#ac5968324d111135ea6b43400d709ec30">BOXPRIM5</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">"BoxPrim5"</span>); <a name="l00294"></a><a class="code" href="boxes_8hh.html#ad29739b19510e1892a200ff009d9b0cb">00294</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="boxes_8cpp.html#ad29739b19510e1892a200ff009d9b0cb">boxPrim5</a>(<a class="code" href="boxes_8hh.html#ae228ee0345249785e8f74cce21162037">prim5</a> foo) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXPRIM5, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>((<span class="keywordtype">void</span>*)foo)); } <a name="l00295"></a><a class="code" href="boxes_8hh.html#aba4a65a9f30e78759da0796c55b13e8e">00295</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aba4a65a9f30e78759da0796c55b13e8e">isBoxPrim5</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; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPRIM5, t); } <a name="l00296"></a><a class="code" href="boxes_8hh.html#a0aa52ae0bc2b71e9003bfead1cd8bfdd">00296</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aba4a65a9f30e78759da0796c55b13e8e">isBoxPrim5</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="boxes_8hh.html#ae228ee0345249785e8f74cce21162037">prim5</a>* p) { <a 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, BOXPRIM5, t) && <a class="code" href="node_8hh.html#ad77dd53dfdf27d36a561a7ccbcb27708">isPointer</a>(t-><a class="code" href="classCTree.html#a8de786fec095c8304b9ffa7c1c316237" title="return the content of the tree">node</a>(),(<span class="keywordtype">void</span>**)p); } <a name="l00297"></a>00297 <a name="l00298"></a>00298 <span class="comment">/*****************************************************************************</span> <a name="l00299"></a>00299 <span class="comment"> Foreign Functions</span> <a name="l00300"></a>00300 <span class="comment">*****************************************************************************/</span> <a name="l00301"></a>00301 <a name="l00302"></a><a class="code" href="boxes_8cpp.html#a8802563c92ede46df8a71bf1b632d0dd">00302</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="boxes_8cpp.html#a8802563c92ede46df8a71bf1b632d0dd">BOXFFUN</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">"BoxFFun"</span>); <a name="l00303"></a><a class="code" href="boxes_8hh.html#a7c0e937a8a7e08abead6829b06caf9af">00303</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="boxes_8cpp.html#a7c0e937a8a7e08abead6829b06caf9af">boxFFun</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) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXFFUN, ff); } <a name="l00304"></a><a class="code" href="boxes_8hh.html#a70f7ab7aecc722355d6096ca89a7658f">00304</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a70f7ab7aecc722355d6096ca89a7658f">isBoxFFun</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> ff; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXFFUN, ff); } <a name="l00305"></a><a class="code" href="boxes_8hh.html#af04264397c7d20667c97d9d252a71716">00305</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a70f7ab7aecc722355d6096ca89a7658f">isBoxFFun</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>& ff) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXFFUN, ff); } <a name="l00306"></a>00306 <a name="l00307"></a>00307 <a name="l00308"></a><a class="code" href="boxes_8cpp.html#a016b2e83e3913a0a1cd514a673f85455">00308</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="boxes_8cpp.html#a016b2e83e3913a0a1cd514a673f85455">BOXFCONST</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">"BoxFConst"</span>); <a name="l00309"></a><a class="code" href="boxes_8hh.html#ac37319b7a8ede40a08ec6d91117df8a0">00309</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="boxes_8cpp.html#ac37319b7a8ede40a08ec6d91117df8a0">boxFConst</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>(BOXFCONST, type, name, file); } <a name="l00310"></a><a class="code" href="boxes_8hh.html#a8744a0451eacde8e56290b3fd74bc0b1">00310</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a8744a0451eacde8e56290b3fd74bc0b1">isBoxFConst</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, BOXFCONST, t, n, f); } <a name="l00311"></a><a class="code" href="boxes_8hh.html#a8b5c943d4348e90644b3d82f100c8620">00311</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a8744a0451eacde8e56290b3fd74bc0b1">isBoxFConst</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>& 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXFCONST,type, name, file); } <a name="l00312"></a>00312 <a name="l00313"></a>00313 <a name="l00314"></a><a class="code" href="boxes_8cpp.html#afa7c9792909598bf93e1b29550490567">00314</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="boxes_8cpp.html#afa7c9792909598bf93e1b29550490567">BOXFVAR</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">"BoxFVar"</span>); <a name="l00315"></a><a class="code" href="boxes_8hh.html#a32e16dd38f20185aa4859780bdd23520">00315</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="boxes_8cpp.html#a32e16dd38f20185aa4859780bdd23520">boxFVar</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>(BOXFVAR, type, name, file); } <a name="l00316"></a><a class="code" href="boxes_8hh.html#aed6793582932079092255c2643b45f91">00316</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aed6793582932079092255c2643b45f91">isBoxFVar</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, BOXFVAR, t, n, f); } <a name="l00317"></a><a class="code" href="boxes_8hh.html#a4135f21f36c09eab094864b60e12e4c0">00317</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aed6793582932079092255c2643b45f91">isBoxFVar</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>& 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_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXFVAR,type, name, file); } <a name="l00318"></a>00318 <a name="l00319"></a>00319 <a name="l00320"></a>00320 <span class="comment">/*****************************************************************************</span> <a name="l00321"></a>00321 <span class="comment"> User Interface Elements</span> <a name="l00322"></a>00322 <span class="comment">*****************************************************************************/</span> <a name="l00323"></a>00323 <a name="l00324"></a><a class="code" href="boxes_8cpp.html#a1d9fe7111b4aaec785e33988ce107277">00324</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="boxes_8cpp.html#a1d9fe7111b4aaec785e33988ce107277">BOXBUTTON</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">"BoxButton"</span>); <a name="l00325"></a><a class="code" href="boxes_8hh.html#aebff638fa31efbdb7bd4859af98229e1">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="boxes_8cpp.html#aed2a94f879bfaf62a16ac818c6a9ccf4">boxButton</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>(BOXBUTTON, lbl); } <a name="l00326"></a><a class="code" href="boxes_8hh.html#a83b021a73e7c4af2535efcfe0832c690">00326</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a83b021a73e7c4af2535efcfe0832c690">isBoxButton</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, BOXBUTTON, lbl); } <a name="l00327"></a><a class="code" href="boxes_8hh.html#a229de3d27b2a7d7cf527da5bbf788f50">00327</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a83b021a73e7c4af2535efcfe0832c690">isBoxButton</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, BOXBUTTON, lbl); } <a name="l00328"></a>00328 <a name="l00329"></a>00329 <a name="l00330"></a><a class="code" href="boxes_8cpp.html#a890a2b5241817f631feed533b7f34a0f">00330</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="boxes_8cpp.html#a890a2b5241817f631feed533b7f34a0f">BOXCHECKBOX</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">"BoxCheckbox"</span>); <a name="l00331"></a><a class="code" href="boxes_8hh.html#acaa81389efafc45dad215f6232e7898b">00331</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="boxes_8cpp.html#a713a9e3db4c41ea0372cb2d5cc9236d9">boxCheckbox</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>(BOXCHECKBOX, lbl); } <a name="l00332"></a><a class="code" href="boxes_8hh.html#a635dcccb574f9a9c911b89a756126473">00332</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a635dcccb574f9a9c911b89a756126473">isBoxCheckbox</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, BOXCHECKBOX, lbl); } <a name="l00333"></a><a class="code" href="boxes_8hh.html#a34547a750f3acbe5743f715348f40992">00333</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a635dcccb574f9a9c911b89a756126473">isBoxCheckbox</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, BOXCHECKBOX, lbl); } <a name="l00334"></a>00334 <a name="l00335"></a>00335 <a name="l00336"></a><a class="code" href="boxes_8cpp.html#a96c548be893260caa2f9493426a6bc4b">00336</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="boxes_8cpp.html#a96c548be893260caa2f9493426a6bc4b">BOXHSLIDER</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">"BoxHSlider"</span>); <a name="l00337"></a><a class="code" href="boxes_8hh.html#afc2d4e2080c5d5da0de1b410844d0550">00337</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="boxes_8cpp.html#a691fec078031347758ff4e100618b3aa">boxHSlider</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="l00338"></a>00338 { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXHSLIDER, lbl, <a class="code" href="list_8hh.html#a98e1fc72e3cecd5580c48ba4dc3103db">list4</a>(cur,min,max,step)); } <a name="l00339"></a><a class="code" href="boxes_8hh.html#adf3ec537a021d2a50ddc8e029d540451">00339</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#adf3ec537a021d2a50ddc8e029d540451">isBoxHSlider</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, BOXHSLIDER, lbl, params); } <a name="l00340"></a>00340 <a name="l00341"></a><a class="code" href="boxes_8hh.html#ae21de288797af3a00a423d6f1bbaa266">00341</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#adf3ec537a021d2a50ddc8e029d540451">isBoxHSlider</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="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="l00342"></a>00342 { <a name="l00343"></a>00343 <a 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="l00344"></a>00344 <span class="keywordflow">if</span> (<a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXHSLIDER, lbl, params)) { <a name="l00345"></a>00345 cur = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 0); <a name="l00346"></a>00346 min = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 1); <a name="l00347"></a>00347 max = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 2); <a name="l00348"></a>00348 step= <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 3); <a name="l00349"></a>00349 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00350"></a>00350 } <span class="keywordflow">else</span> { <a name="l00351"></a>00351 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00352"></a>00352 } <a name="l00353"></a>00353 } <a name="l00354"></a>00354 <a name="l00355"></a>00355 <a name="l00356"></a><a class="code" href="boxes_8cpp.html#a1bb0161c2f0f410d91fe208b8bbfe854">00356</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="boxes_8cpp.html#a1bb0161c2f0f410d91fe208b8bbfe854">BOXVSLIDER</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">"BoxVSlider"</span>); <a name="l00357"></a><a class="code" href="boxes_8hh.html#a8956693a5ac53c607c38f86647c10ddc">00357</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="boxes_8cpp.html#a58077eabcc68d3519f757fe8a200e12b">boxVSlider</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="l00358"></a>00358 { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXVSLIDER, lbl, <a class="code" href="list_8hh.html#a98e1fc72e3cecd5580c48ba4dc3103db">list4</a>(cur,min,max,step)); } <a name="l00359"></a><a class="code" href="boxes_8hh.html#a4bf55c2d9a65d986d0d19da98d14db16">00359</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a4bf55c2d9a65d986d0d19da98d14db16">isBoxVSlider</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, BOXVSLIDER, lbl, params); } <a name="l00360"></a>00360 <a name="l00361"></a><a class="code" href="boxes_8hh.html#aa582248c5bf3fc247645f4a386785a74">00361</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a4bf55c2d9a65d986d0d19da98d14db16">isBoxVSlider</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="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="l00362"></a>00362 { <a name="l00363"></a>00363 <a 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="l00364"></a>00364 <span class="keywordflow">if</span> (<a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXVSLIDER, lbl, params)) { <a name="l00365"></a>00365 cur = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 0); <a name="l00366"></a>00366 min = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 1); <a name="l00367"></a>00367 max = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 2); <a name="l00368"></a>00368 step= <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 3); <a name="l00369"></a>00369 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00370"></a>00370 } <span class="keywordflow">else</span> { <a name="l00371"></a>00371 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00372"></a>00372 } <a name="l00373"></a>00373 } <a name="l00374"></a>00374 <a name="l00375"></a>00375 <a name="l00376"></a>00376 <a name="l00377"></a><a class="code" href="boxes_8cpp.html#a6eeba6bf85cc7cfbe492dcc11dc54a65">00377</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="boxes_8cpp.html#a6eeba6bf85cc7cfbe492dcc11dc54a65">BOXNUMENTRY</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">"BoxNumEntry"</span>); <a name="l00378"></a><a class="code" href="boxes_8hh.html#a3b0bc2a4c5870c195751f44af9ac5cd7">00378</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="boxes_8cpp.html#a7a7c245e6177e2803fdbd4697d406833">boxNumEntry</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="l00379"></a>00379 { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXNUMENTRY, lbl, <a class="code" href="list_8hh.html#a98e1fc72e3cecd5580c48ba4dc3103db">list4</a>(cur,min,max,step)); } <a name="l00380"></a><a class="code" href="boxes_8hh.html#aa135a488b7d54dcce1249f5761ab014a">00380</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aa135a488b7d54dcce1249f5761ab014a">isBoxNumEntry</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, BOXNUMENTRY, lbl, params); } <a name="l00381"></a>00381 <a name="l00382"></a><a class="code" href="boxes_8hh.html#abbfb020771f7db90bb175f01c86bff82">00382</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aa135a488b7d54dcce1249f5761ab014a">isBoxNumEntry</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="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="l00383"></a>00383 { <a name="l00384"></a>00384 <a 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="l00385"></a>00385 <span class="keywordflow">if</span> (<a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXNUMENTRY, lbl, params)) { <a name="l00386"></a>00386 cur = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 0); <a name="l00387"></a>00387 min = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 1); <a name="l00388"></a>00388 max = <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 2); <a name="l00389"></a>00389 step= <a class="code" href="list_8cpp.html#a928095576946f64a78ea78fbb65fb8d6">nth</a>(params, 3); <a name="l00390"></a>00390 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00391"></a>00391 } <span class="keywordflow">else</span> { <a name="l00392"></a>00392 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00393"></a>00393 } <a name="l00394"></a>00394 } <a name="l00395"></a>00395 <a name="l00396"></a>00396 <a name="l00397"></a><a class="code" href="boxes_8cpp.html#a21973ba00e568dc6035b179473d949ec">00397</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="boxes_8cpp.html#a21973ba00e568dc6035b179473d949ec">BOXHGROUP</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">"BoxHGroup"</span>); <a name="l00398"></a><a class="code" href="boxes_8hh.html#a0998b1226b05217f0c99e6b4cafe315c">00398</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="boxes_8cpp.html#a28277e5b31c07655d3f2661009de8ba5">boxHGroup</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> x) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXHGROUP, lbl, x); } <a name="l00399"></a><a class="code" href="boxes_8hh.html#a1b73cc14722de085e72c0a008fa56af3">00399</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a1b73cc14722de085e72c0a008fa56af3">isBoxHGroup</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, x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXHGROUP, lbl, x); } <a name="l00400"></a><a class="code" href="boxes_8hh.html#ac4d7515ecc5247b6224ac33423eb08aa">00400</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a1b73cc14722de085e72c0a008fa56af3">isBoxHGroup</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="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>(s, BOXHGROUP, lbl, x); } <a name="l00401"></a>00401 <a name="l00402"></a>00402 <a name="l00403"></a><a class="code" href="boxes_8cpp.html#a860a6e96ba08dd8556be5ac41860473a">00403</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="boxes_8cpp.html#a860a6e96ba08dd8556be5ac41860473a">BOXVGROUP</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">"BoxVGroup"</span>); <a name="l00404"></a><a class="code" href="boxes_8hh.html#aba48d9cadc2f31e1763a70b0b270724b">00404</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="boxes_8cpp.html#af7b9d97c17af0321c0d5fc16c119086a">boxVGroup</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> x) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXVGROUP, lbl, x); } <a name="l00405"></a><a class="code" href="boxes_8hh.html#a5643302db2568cf9eaa48fd6f7d336a9">00405</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a5643302db2568cf9eaa48fd6f7d336a9">isBoxVGroup</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, x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXVGROUP, lbl, x); } <a name="l00406"></a><a class="code" href="boxes_8hh.html#ab1546e8011fc885101e9de10c48f4a3e">00406</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a5643302db2568cf9eaa48fd6f7d336a9">isBoxVGroup</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="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>(s, BOXVGROUP, lbl, x); } <a name="l00407"></a>00407 <a name="l00408"></a>00408 <a name="l00409"></a><a class="code" href="boxes_8cpp.html#a50e4f16618a45becf2554f1771fbe755">00409</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="boxes_8cpp.html#a50e4f16618a45becf2554f1771fbe755">BOXTGROUP</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">"BoxTGroup"</span>); <a name="l00410"></a><a class="code" href="boxes_8hh.html#a24d78d464c75d42d2c4e33c50bce028c">00410</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="boxes_8cpp.html#aa8dae06145f9c156c31c40e325c00c2d">boxTGroup</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> x) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXTGROUP, lbl, x); } <a name="l00411"></a><a class="code" href="boxes_8hh.html#a3e76d86869cc8b1df759a4bcb972cf2d">00411</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a3e76d86869cc8b1df759a4bcb972cf2d">isBoxTGroup</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, x; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXTGROUP, lbl, x); } <a name="l00412"></a><a class="code" href="boxes_8hh.html#a17d47efe096c66c683d899e4fafd61d2">00412</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a3e76d86869cc8b1df759a4bcb972cf2d">isBoxTGroup</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="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>(s, BOXTGROUP, lbl, x); } <a name="l00413"></a>00413 <a name="l00414"></a>00414 <a name="l00415"></a><a class="code" href="boxes_8cpp.html#a6ef1b051df7f78821cfc91724dfc1f0a">00415</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="boxes_8cpp.html#a6ef1b051df7f78821cfc91724dfc1f0a">BOXHBARGRAPH</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">"BoxHBargraph"</span>); <a name="l00416"></a><a class="code" href="boxes_8hh.html#a72d6df517519cd43588cb8d4356a5f01">00416</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="boxes_8cpp.html#ac6deb880e0ad589b32b6c38dbdce5fd2">boxHBargraph</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>) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXHBARGRAPH, lbl, min, max); } <a name="l00417"></a><a class="code" href="boxes_8hh.html#aa34cc27fbf6e04a6825ba4461af2a9e0">00417</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aa34cc27fbf6e04a6825ba4461af2a9e0">isBoxHBargraph</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>; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXHBARGRAPH, lbl, min, max); } <a name="l00418"></a><a class="code" href="boxes_8hh.html#a9e286f7a6c8bcc85c720e95779559c22">00418</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#aa34cc27fbf6e04a6825ba4461af2a9e0">isBoxHBargraph</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="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>) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXHBARGRAPH, lbl, min, max); } <a name="l00419"></a>00419 <a name="l00420"></a>00420 <a name="l00421"></a><a class="code" href="boxes_8cpp.html#a5b410628271e9343ca198e23a5c61ff9">00421</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="boxes_8cpp.html#a5b410628271e9343ca198e23a5c61ff9">BOXVBARGRAPH</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">"BoxVBargraph"</span>); <a name="l00422"></a><a class="code" href="boxes_8hh.html#ae0c523b690efb8cf69c62498c09452d2">00422</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="boxes_8cpp.html#a19d3c8f4a2a6a6691215e4ce9b6f30f0">boxVBargraph</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>) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXVBARGRAPH, lbl, min, max); } <a name="l00423"></a><a class="code" href="boxes_8hh.html#a1f17c731544a73f907993681b57e7461">00423</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a1f17c731544a73f907993681b57e7461">isBoxVBargraph</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>; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXVBARGRAPH, lbl, min, max); } <a name="l00424"></a><a class="code" href="boxes_8hh.html#af618ace917ccf474432cbc9749cf87ed">00424</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a1f17c731544a73f907993681b57e7461">isBoxVBargraph</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="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>) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXVBARGRAPH, lbl, min, max); } <a name="l00425"></a>00425 <a name="l00426"></a>00426 <a name="l00427"></a>00427 <span class="comment">/*****************************************************************************</span> <a name="l00428"></a>00428 <span class="comment"> pattern lmatching case</span> <a name="l00429"></a>00429 <span class="comment">*****************************************************************************/</span> <a name="l00430"></a>00430 <a name="l00431"></a><a class="code" href="boxes_8cpp.html#a1ce7332b44450c80ff0500872d820285">00431</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="boxes_8cpp.html#a1ce7332b44450c80ff0500872d820285">BOXCASE</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">"BoxCase"</span>); <a name="l00432"></a><a class="code" href="boxes_8cpp.html#a97cb5e8bb338b613d05c845173942384">00432</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="boxes_8cpp.html#a97cb5e8bb338b613d05c845173942384">BOXPATMATCHER</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">"BoxPatMatcher"</span>); <a name="l00433"></a><a class="code" href="boxes_8cpp.html#ac37bcf67fcf3dc925659bbe04e7f0860">00433</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="boxes_8cpp.html#ac37bcf67fcf3dc925659bbe04e7f0860">BOXPATVAR</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">"BoxPatVar"</span>); <a name="l00434"></a>00434 <a name="l00435"></a><a class="code" href="boxes_8hh.html#a8bc3b57470ff5814f5f24ed97dff593b">00435</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="boxes_8cpp.html#a8bc3b57470ff5814f5f24ed97dff593b">boxCase</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> rules) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXCASE, rules); } <a name="l00436"></a><a class="code" href="boxes_8hh.html#a345a4cfac5657c40640b503058b300f9">00436</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a345a4cfac5657c40640b503058b300f9">isBoxCase</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> rules; <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXCASE, rules); } <a name="l00437"></a><a class="code" href="boxes_8hh.html#ade05ced5d38ca4d3455ebd6f0640564d">00437</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a345a4cfac5657c40640b503058b300f9">isBoxCase</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>& rules) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXCASE, rules); } <a name="l00438"></a>00438 <a name="l00439"></a><a class="code" href="boxes_8hh.html#a4c923f00afc25e923857fe3c6f3c1ca3">00439</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="boxes_8cpp.html#a4c923f00afc25e923857fe3c6f3c1ca3">boxPatternVar</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>) { <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXPATVAR, <span class="keywordtype">id</span>); } <a name="l00440"></a><a class="code" href="boxes_8hh.html#ad166878e0270e4eab4adf2fb5f81fc31">00440</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#ad166878e0270e4eab4adf2fb5f81fc31">isBoxPatternVar</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>& <span class="keywordtype">id</span>) { <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPATVAR, <span class="keywordtype">id</span>); } <a name="l00441"></a>00441 <a name="l00442"></a>00442 <a name="l00443"></a><a class="code" href="boxes_8hh.html#aa155619a2d5daf20b6f652cfdde63876">00443</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="boxes_8cpp.html#aa155619a2d5daf20b6f652cfdde63876">boxPatternMatcher</a> (<a class="code" href="structAutomaton.html">Automaton</a>* a, <span class="keywordtype">int</span> state, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> env, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> origRules, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> revParamList) <a name="l00444"></a>00444 { <a name="l00445"></a>00445 <span class="keywordflow">return</span> <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(BOXPATMATCHER, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>((<span class="keywordtype">void</span>*)a), <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(state), env, origRules, revParamList); <a name="l00446"></a>00446 } <a name="l00447"></a>00447 <a name="l00448"></a><a class="code" href="boxes_8hh.html#a23a555bb65c1a6a4af53c7c1f24ff124">00448</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a23a555bb65c1a6a4af53c7c1f24ff124">isBoxPatternMatcher</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 name="l00449"></a>00449 { <a name="l00450"></a>00450 <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> ta, ts, env, orig, rpl; <a name="l00451"></a>00451 <span class="keywordflow">return</span> <a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPATMATCHER, ta, ts, env, orig, rpl); <a name="l00452"></a>00452 } <a name="l00453"></a>00453 <a name="l00454"></a><a class="code" href="boxes_8hh.html#a0ea7762508af0708882f413a98131393">00454</a> <span class="keywordtype">bool</span> <a class="code" href="boxes_8cpp.html#a23a555bb65c1a6a4af53c7c1f24ff124">isBoxPatternMatcher</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="structAutomaton.html">Automaton</a>*& a, <span class="keywordtype">int</span>& state, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& env, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& origRules, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>& revParamList) <a name="l00455"></a>00455 { <a name="l00456"></a>00456 <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> ta, ts; <a name="l00457"></a>00457 <span class="keywordflow">if</span> (<a class="code" href="tree_8cpp.html#a06be972e0437c7c09e8a1274586fe176">isTree</a>(s, BOXPATMATCHER, ta, ts, env, origRules, revParamList)) { <a name="l00458"></a>00458 a = (<a class="code" href="structAutomaton.html">Automaton</a>*)<a class="code" href="tree_8cpp.html#ad1d692b2c0a86d485a3d096af07632e6" title="if t has a node of type ptr, return it otherwise error">tree2ptr</a>(ta); <a name="l00459"></a>00459 state = <a class="code" href="tree_8cpp.html#a523bce65e2a281fe678f2362496061cf" title="if t has a node of type int, return it otherwise error">tree2int</a>(ts); <a name="l00460"></a>00460 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00461"></a>00461 } <span class="keywordflow">else</span> { <a name="l00462"></a>00462 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00463"></a>00463 } <a name="l00464"></a>00464 } <a name="l00465"></a>00465 <a name="l00466"></a>00466 </pre></div></div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Apr 28 23:59:58 2010 for FAUST compiler by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>