<!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: OccMarkup Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>OccMarkup Class Reference</h1><!-- doxytag: class="OccMarkup" --> <p><a class="el" href="classOccurences.html">Occurences</a> Markup of a root tree. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="occurences_8hh_source.html">occurences.hh</a>></code></p> <div class="dynheader"> Collaboration diagram for OccMarkup:</div> <div class="dynsection"> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classOccMarkup-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOccMarkup.html#aaba1b76dc4c0f320f1639ec0f02e68e1">mark</a> (<a class="el" href="classCTree.html">Tree</a> root)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">start markup of root tree with new unique key <a href="#aaba1b76dc4c0f320f1639ec0f02e68e1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOccurences.html">Occurences</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOccMarkup.html#ade9cb60264fd5e727cfb69568cb49efa">retrieve</a> (<a class="el" href="classCTree.html">Tree</a> t)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">occurences of subtree t within root tree <a href="#ade9cb60264fd5e727cfb69568cb49efa"></a><br/></td></tr> <tr><td colspan="2"><h2>Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0">incOcc</a> (<a class="el" href="classCTree.html">Tree</a> env, int v, int r, int d, <a class="el" href="classCTree.html">Tree</a> t)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">inc the occurence of t in context v,r <a href="#a68c971c2ea5685754fc5544406d7c6e0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOccurences.html">Occurences</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOccMarkup.html#ac30dc5af4c0fe9524e78ae26b6705d99">getOcc</a> (<a class="el" href="classCTree.html">Tree</a> t)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">get <a class="el" href="classOccurences.html">Occurences</a> property of t or null <a href="#ac30dc5af4c0fe9524e78ae26b6705d99"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classOccMarkup.html#a6ca170443f96829d5157ee8100a053fe">setOcc</a> (<a class="el" href="classCTree.html">Tree</a> t, <a class="el" href="classOccurences.html">Occurences</a> *occ)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">set <a class="el" href="classOccurences.html">Occurences</a> property of t <a href="#a6ca170443f96829d5157ee8100a053fe"></a><br/></td></tr> <tr><td colspan="2"><h2>Private Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCTree.html">Tree</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOccMarkup.html#ac6a75bb7b05350392a3d0c029a966fc5">fRootTree</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">occurences computed within this tree <a href="#ac6a75bb7b05350392a3d0c029a966fc5"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCTree.html">Tree</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOccMarkup.html#ae6604a409c3c5f07d30859e7314352a2">fPropKey</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">key used to store occurences property <a href="#ae6604a409c3c5f07d30859e7314352a2"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p><a class="el" href="classOccurences.html">Occurences</a> Markup of a root tree. </p> <p>First create an <a class="el" href="classOccMarkup.html" title="Occurences Markup of a root tree.">OccMarkup</a> om, second om.mark(root) then om.retrieve(subtree) </p> <p>Definition at line <a class="el" href="occurences_8hh_source.html#l00030">30</a> of file <a class="el" href="occurences_8hh_source.html">occurences.hh</a>.</p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ac30dc5af4c0fe9524e78ae26b6705d99"></a><!-- doxytag: member="OccMarkup::getOcc" ref="ac30dc5af4c0fe9524e78ae26b6705d99" args="(Tree t)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOccurences.html">Occurences</a> * OccMarkup::getOcc </td> <td>(</td> <td class="paramtype"><a class="el" href="classCTree.html">Tree</a> </td> <td class="paramname"> <em>t</em></td> <td> ) </td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>get <a class="el" href="classOccurences.html">Occurences</a> property of t or null </p> <p>Definition at line <a class="el" href="occurences_8cpp_source.html#l00137">137</a> of file <a class="el" href="occurences_8cpp_source.html">occurences.cpp</a>.</p> <p>References <a class="el" href="occurences_8hh_source.html#l00033">fPropKey</a>, <a class="el" href="tree_8hh_source.html#l00160">CTree::getProperty()</a>, and <a class="el" href="tree_8cpp_source.html#l00302">tree2ptr()</a>.</p> <p>Referenced by <a class="el" href="occurences_8cpp_source.html#l00095">incOcc()</a>, and <a class="el" href="occurences_8cpp_source.html#l00081">retrieve()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00138"></a>00138 { <a name="l00139"></a>00139 <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> p = t-><a class="code" href="classCTree.html#a902b48b83db587f14dbd31999c0f715f">getProperty</a>(<a class="code" href="classOccMarkup.html#ae6604a409c3c5f07d30859e7314352a2" title="key used to store occurences property">fPropKey</a>); <a name="l00140"></a>00140 <span class="keywordflow">if</span> (p) { <a name="l00141"></a>00141 <span class="keywordflow">return</span> (<a class="code" href="classOccurences.html">Occurences</a>*) <a class="code" href="tree_8cpp.html#ad1d692b2c0a86d485a3d096af07632e6" title="if t has a node of type ptr, return it otherwise error">tree2ptr</a>(p); <a name="l00142"></a>00142 } <span class="keywordflow">else</span> { <a name="l00143"></a>00143 <span class="keywordflow">return</span> 0; <a name="l00144"></a>00144 } <a name="l00145"></a>00145 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="a68c971c2ea5685754fc5544406d7c6e0"></a><!-- doxytag: member="OccMarkup::incOcc" ref="a68c971c2ea5685754fc5544406d7c6e0" args="(Tree env, int v, int r, int d, Tree t)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void OccMarkup::incOcc </td> <td>(</td> <td class="paramtype"><a class="el" href="classCTree.html">Tree</a> </td> <td class="paramname"> <em>env</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>v</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>d</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classCTree.html">Tree</a> </td> <td class="paramname"> <em>t</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>inc the occurence of t in context v,r </p> <p>Definition at line <a class="el" href="occurences_8cpp_source.html#l00095">95</a> of file <a class="el" href="occurences_8cpp_source.html">occurences.cpp</a>.</p> <p>References <a class="el" href="sigtype_8cpp_source.html#l00279">checkDelayInterval()</a>, <a class="el" href="occurences_8cpp_source.html#l00137">getOcc()</a>, <a class="el" href="recursivness_8cpp_source.html#l00064">getRecursivness()</a>, <a class="el" href="sigtyperules_8cpp_source.html#l00082">getSigType()</a>, <a class="el" href="subsignals_8cpp_source.html#l00010">getSubSignals()</a>, <a class="el" href="occurences_8cpp_source.html#l00034">Occurences::incOccurences()</a>, <a class="el" href="signals_8cpp_source.html#l00062">isSigFixDelay()</a>, <a class="el" href="signals_8cpp_source.html#l00091">isSigGen()</a>, <a class="el" href="signals_8cpp_source.html#l00066">isSigPrefix()</a>, and <a class="el" href="occurences_8cpp_source.html#l00148">setOcc()</a>.</p> <p>Referenced by <a class="el" href="occurences_8cpp_source.html#l00063">mark()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00096"></a>00096 { <a name="l00097"></a>00097 <span class="comment">//cerr << "enter incOcc(" << v << "," << r << "," << d << "," << *t << ")" << endl;</span> <a name="l00098"></a>00098 <a name="l00099"></a>00099 <span class="comment">// Check if we have already visited this tree</span> <a name="l00100"></a>00100 <a class="code" href="classOccurences.html">Occurences</a>* occ = <a class="code" href="classOccMarkup.html#ac30dc5af4c0fe9524e78ae26b6705d99" title="get Occurences property of t or null">getOcc</a>(t); <a name="l00101"></a>00101 <a name="l00102"></a>00102 <span class="keywordflow">if</span> (occ==0) { <a name="l00103"></a>00103 <span class="comment">// 1) We build initial occurence information</span> <a name="l00104"></a>00104 <a class="code" href="classP.html">Type</a> ty = <a class="code" href="sigtyperules_8cpp.html#a1f41188e4150f54b2fb2caf28a948785" title="retrieve the type annotation of sig">getSigType</a>(t); <a name="l00105"></a>00105 <span class="keywordtype">int</span> v0 = ty->variability(); <a name="l00106"></a>00106 <span class="keywordtype">int</span> r0 = <a class="code" href="recursivness_8cpp.html#a5e771832d204d89a67f42e4a0b9b15a5" title="Return the recursivness of a previously annotated signal.">getRecursivness</a>(t); <a name="l00107"></a>00107 <a name="l00108"></a>00108 occ = <span class="keyword">new</span> <a class="code" href="classOccurences.html">Occurences</a>(v0,r0); <a name="l00109"></a>00109 <a class="code" href="classOccMarkup.html#a6ca170443f96829d5157ee8100a053fe" title="set Occurences property of t">setOcc</a>(t, occ); <a name="l00110"></a>00110 <a name="l00111"></a>00111 <span class="comment">// We mark the subtrees of t</span> <a name="l00112"></a>00112 <a 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, y; <a name="l00113"></a>00113 <span class="keywordflow">if</span> (<a class="code" href="signals_8cpp.html#af55cdefee258834b3b8f6c070d4970c9">isSigFixDelay</a>(t,x,y)) { <a name="l00114"></a>00114 <a class="code" href="classP.html">Type</a> g2 = <a class="code" href="sigtyperules_8cpp.html#a1f41188e4150f54b2fb2caf28a948785" title="retrieve the type annotation of sig">getSigType</a>(y); <a name="l00115"></a>00115 <span class="keywordtype">int</span> d2 = <a class="code" href="sigtype_8cpp.html#a93b58aa70785fe4a2c0f520fdbc246c9" title="Check is a type is appropriate for a delay.">checkDelayInterval</a>(g2); <a name="l00116"></a>00116 assert(d2>=0); <a name="l00117"></a>00117 <a class="code" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0" title="inc the occurence of t in context v,r">incOcc</a>(env, v0, r0, d2, x); <a name="l00118"></a>00118 <a class="code" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0" title="inc the occurence of t in context v,r">incOcc</a>(env, v0, r0, 0, y); <a name="l00119"></a>00119 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="signals_8cpp.html#a18895c816779682006a84aede438af29">isSigPrefix</a>(t,y,x)) { <a name="l00120"></a>00120 <a class="code" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0" title="inc the occurence of t in context v,r">incOcc</a>(env, v0, r0, 1, x); <a name="l00121"></a>00121 <a class="code" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0" title="inc the occurence of t in context v,r">incOcc</a>(env, v0, r0, 0, y); <a name="l00122"></a>00122 } <span class="keywordflow">else</span> { <a name="l00123"></a>00123 vector<Tree> br; <a name="l00124"></a>00124 <span class="keywordtype">int</span> n = <a class="code" href="signals_8hh.html#ae5dd2bb17d8df90f5561bb8084b3f10f" title="Extract the sub signals of a signal expression, that is not necesseraly all the subtrees...">getSubSignals</a>(t, br); <a name="l00125"></a>00125 <span class="keywordflow">if</span> (n>0 && ! <a class="code" href="signals_8cpp.html#a771720237ca174a55a6823cc6623d602">isSigGen</a>(t)) { <a name="l00126"></a>00126 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i<n; i++) <a class="code" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0" title="inc the occurence of t in context v,r">incOcc</a>(env, v0, r0, 0, br[i]); <a name="l00127"></a>00127 } <a name="l00128"></a>00128 } <a name="l00129"></a>00129 } <a name="l00130"></a>00130 <a name="l00131"></a>00131 occ-><a class="code" href="classOccurences.html#ae8c2ebe876a58caa0f4868f0eb531a20" title="inc occurences in context v,r,d">incOccurences</a>(v,r,d); <a name="l00132"></a>00132 <a name="l00133"></a>00133 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="aaba1b76dc4c0f320f1639ec0f02e68e1"></a><!-- doxytag: member="OccMarkup::mark" ref="aaba1b76dc4c0f320f1639ec0f02e68e1" args="(Tree root)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void OccMarkup::mark </td> <td>(</td> <td class="paramtype"><a class="el" href="classCTree.html">Tree</a> </td> <td class="paramname"> <em>root</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>start markup of root tree with new unique key </p> <p>Definition at line <a class="el" href="occurences_8cpp_source.html#l00063">63</a> of file <a class="el" href="occurences_8cpp_source.html">occurences.cpp</a>.</p> <p>References <a class="el" href="occurences_8hh_source.html#l00033">fPropKey</a>, <a class="el" href="occurences_8hh_source.html#l00032">fRootTree</a>, <a class="el" href="list_8hh_source.html#l00133">hd()</a>, <a class="el" href="occurences_8cpp_source.html#l00095">incOcc()</a>, <a class="el" href="list_8hh_source.html#l00138">isList()</a>, <a class="el" href="sigtype_8hh_source.html#l00055">kSamp</a>, <a class="el" href="list_8cpp_source.html#l00116">nil</a>, <a class="el" href="list_8hh_source.html#l00134">tl()</a>, <a class="el" href="tree_8hh_source.html#l00173">tree()</a>, and <a class="el" href="symbol_8hh_source.html#l00097">unique()</a>.</p> <p>Referenced by <a class="el" href="doc__compile_8cpp_source.html#l00091">DocCompiler::annotate()</a>, <a class="el" href="compile__scal_8cpp_source.html#l00096">ScalarCompiler::prepare()</a>, and <a class="el" href="compile__scal_8cpp_source.html#l00113">ScalarCompiler::prepare2()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00064"></a>00064 { <a name="l00065"></a>00065 <a class="code" href="classOccMarkup.html#ac6a75bb7b05350392a3d0c029a966fc5" title="occurences computed within this tree">fRootTree</a> = root; <a name="l00066"></a>00066 <a class="code" href="classOccMarkup.html#ae6604a409c3c5f07d30859e7314352a2" title="key used to store occurences property">fPropKey</a> = <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(<a class="code" href="symbol_8hh.html#a377309446e0e86ae663cd6709e02889d" title="Returns a new unique symbol of name strxxx.">unique</a>(<span class="stringliteral">"OCCURENCES"</span>)); <a name="l00067"></a>00067 <a name="l00068"></a>00068 <span class="keywordflow">if</span> (<a class="code" href="list_8hh.html#a8bdd73641276e0c0f999f504348eacc1">isList</a>(root)) { <a name="l00069"></a>00069 <span class="keywordflow">while</span> (<a class="code" href="list_8hh.html#a8bdd73641276e0c0f999f504348eacc1">isList</a>(root)) { <a name="l00070"></a>00070 <span class="comment">//incOcc(kSamp, 1, hd(root));</span> <a name="l00071"></a>00071 <a class="code" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0" title="inc the occurence of t in context v,r">incOcc</a>(<a class="code" href="list_8cpp.html#a538b704dd07794b7237108f1917c471e">nil</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a415bf3edc164c8f259f328ff6dc0529a">kSamp</a>, 0, 0, <a class="code" href="list_8hh.html#a067ad6f83087b420a1c44e48e56be389">hd</a>(root)); <a name="l00072"></a>00072 root = <a class="code" href="list_8hh.html#a4075748f5c7156306ec898795313a2e0">tl</a>(root); <a name="l00073"></a>00073 } <a name="l00074"></a>00074 <span class="comment">//cerr << "END OF LIST IS " << *root << endl;</span> <a name="l00075"></a>00075 } <span class="keywordflow">else</span> { <a name="l00076"></a>00076 <span class="comment">//incOcc(kSamp, 1, root);</span> <a name="l00077"></a>00077 <a class="code" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0" title="inc the occurence of t in context v,r">incOcc</a>(<a class="code" href="list_8cpp.html#a538b704dd07794b7237108f1917c471e">nil</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a415bf3edc164c8f259f328ff6dc0529a">kSamp</a>, 0, 0, root); <a name="l00078"></a>00078 } <a name="l00079"></a>00079 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="ade9cb60264fd5e727cfb69568cb49efa"></a><!-- doxytag: member="OccMarkup::retrieve" ref="ade9cb60264fd5e727cfb69568cb49efa" args="(Tree t)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOccurences.html">Occurences</a> * OccMarkup::retrieve </td> <td>(</td> <td class="paramtype"><a class="el" href="classCTree.html">Tree</a> </td> <td class="paramname"> <em>t</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>occurences of subtree t within root tree </p> <p>Definition at line <a class="el" href="occurences_8cpp_source.html#l00081">81</a> of file <a class="el" href="occurences_8cpp_source.html">occurences.cpp</a>.</p> <p>References <a class="el" href="occurences_8cpp_source.html#l00137">getOcc()</a>.</p> <p>Referenced by <a class="el" href="doc__compile_8cpp_source.html#l00521">DocCompiler::generateCacheCode()</a>, <a class="el" href="compile__vect_8cpp_source.html#l00155">VectorCompiler::generateCacheCode()</a>, <a class="el" href="compile__scal_8cpp_source.html#l00410">ScalarCompiler::generateCacheCode()</a>, <a class="el" href="doc__compile_8cpp_source.html#l00298">DocCompiler::generateFConst()</a>, <a class="el" href="compile__scal_8cpp_source.html#l00313">ScalarCompiler::generateFConst()</a>, <a class="el" href="compile__vect_8cpp_source.html#l00288">VectorCompiler::generateFixDelay()</a>, <a class="el" href="compile__scal_8cpp_source.html#l01098">ScalarCompiler::generateFixDelay()</a>, <a class="el" href="doc__compile_8cpp_source.html#l00323">DocCompiler::generateFVar()</a>, <a class="el" href="compile__scal_8cpp_source.html#l00332">ScalarCompiler::generateFVar()</a>, <a class="el" href="doc__compile_8cpp_source.html#l00278">DocCompiler::generateNumber()</a>, <a class="el" href="compile__scal_8cpp_source.html#l00295">ScalarCompiler::generateNumber()</a>, <a class="el" href="doc__compile_8cpp_source.html#l00902">DocCompiler::generateRec()</a>, <a class="el" href="compile__scal_8cpp_source.html#l00783">ScalarCompiler::generateRec()</a>, and <a class="el" href="compile__vect_8cpp_source.html#l00218">VectorCompiler::needSeparateLoop()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00082"></a>00082 { <a name="l00083"></a>00083 <a class="code" href="classOccurences.html">Occurences</a>* p = <a class="code" href="classOccMarkup.html#ac30dc5af4c0fe9524e78ae26b6705d99" title="get Occurences property of t or null">getOcc</a>(t); <a name="l00084"></a>00084 <span class="keywordflow">if</span> (p == 0) { <a name="l00085"></a>00085 <span class="comment">//cerr << "No Occurences info attached to : " << *t << endl;</span> <a name="l00086"></a>00086 <span class="comment">//exit(1);</span> <a name="l00087"></a>00087 } <a name="l00088"></a>00088 <span class="keywordflow">return</span> p; <a name="l00089"></a>00089 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="a6ca170443f96829d5157ee8100a053fe"></a><!-- doxytag: member="OccMarkup::setOcc" ref="a6ca170443f96829d5157ee8100a053fe" args="(Tree t, Occurences *occ)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void OccMarkup::setOcc </td> <td>(</td> <td class="paramtype"><a class="el" href="classCTree.html">Tree</a> </td> <td class="paramname"> <em>t</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classOccurences.html">Occurences</a> * </td> <td class="paramname"> <em>occ</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>set <a class="el" href="classOccurences.html">Occurences</a> property of t </p> <p>Definition at line <a class="el" href="occurences_8cpp_source.html#l00148">148</a> of file <a class="el" href="occurences_8cpp_source.html">occurences.cpp</a>.</p> <p>References <a class="el" href="occurences_8hh_source.html#l00033">fPropKey</a>, <a class="el" href="tree_8hh_source.html#l00158">CTree::setProperty()</a>, and <a class="el" href="tree_8hh_source.html#l00173">tree()</a>.</p> <p>Referenced by <a class="el" href="occurences_8cpp_source.html#l00095">incOcc()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00149"></a>00149 { <a name="l00150"></a>00150 t-><a class="code" href="classCTree.html#ac628a2ad0d2a21de584e3bca291bd38c">setProperty</a>(<a class="code" href="classOccMarkup.html#ae6604a409c3c5f07d30859e7314352a2" title="key used to store occurences property">fPropKey</a>, <a class="code" href="tree_8hh.html#a61c13e9361cfa80bbb3cd6ce60a8f595">tree</a>(occ)); <a name="l00151"></a>00151 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="ae6604a409c3c5f07d30859e7314352a2"></a><!-- doxytag: member="OccMarkup::fPropKey" ref="ae6604a409c3c5f07d30859e7314352a2" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classCTree.html">Tree</a> <a class="el" href="classOccMarkup.html#ae6604a409c3c5f07d30859e7314352a2">OccMarkup::fPropKey</a><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>key used to store occurences property </p> <p>Definition at line <a class="el" href="occurences_8hh_source.html#l00033">33</a> of file <a class="el" href="occurences_8hh_source.html">occurences.hh</a>.</p> <p>Referenced by <a class="el" href="occurences_8cpp_source.html#l00137">getOcc()</a>, <a class="el" href="occurences_8cpp_source.html#l00063">mark()</a>, and <a class="el" href="occurences_8cpp_source.html#l00148">setOcc()</a>.</p> </div> </div> <a class="anchor" id="ac6a75bb7b05350392a3d0c029a966fc5"></a><!-- doxytag: member="OccMarkup::fRootTree" ref="ac6a75bb7b05350392a3d0c029a966fc5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classCTree.html">Tree</a> <a class="el" href="classOccMarkup.html#ac6a75bb7b05350392a3d0c029a966fc5">OccMarkup::fRootTree</a><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>occurences computed within this tree </p> <p>Definition at line <a class="el" href="occurences_8hh_source.html#l00032">32</a> of file <a class="el" href="occurences_8hh_source.html">occurences.hh</a>.</p> <p>Referenced by <a class="el" href="occurences_8cpp_source.html#l00063">mark()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="occurences_8hh_source.html">occurences.hh</a></li> <li><a class="el" href="occurences_8cpp_source.html">occurences.cpp</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:21 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>