<!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: occurences.hh 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>occurences.hh</h1><a href="occurences_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __OCCURENCES__</span> <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __OCCURENCES__</span> <a name="l00003"></a>00003 <span class="preprocessor"></span> <a name="l00004"></a>00004 <span class="preprocessor">#include "<a class="code" href="tlib_8hh.html">tlib.hh</a>"</span> <a name="l00005"></a>00005 <a name="l00006"></a>00006 <a name="l00007"></a><a class="code" href="classOccurences.html">00007</a> <span class="keyword">class </span><a class="code" href="classOccurences.html">Occurences</a> <a name="l00008"></a>00008 { <a name="l00009"></a><a class="code" href="classOccurences.html#a34f4e09ff035cc3fc4b2ed431b2773f0">00009</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classOccurences.html#a34f4e09ff035cc3fc4b2ed431b2773f0" title="Extended Variability of the expression.">fXVariability</a>; <a name="l00010"></a><a class="code" href="classOccurences.html#a7c988ced4671d9971328b3f9242999b4">00010</a> <span class="keywordtype">int</span> <a class="code" href="classOccurences.html#a7c988ced4671d9971328b3f9242999b4" title="Occurences count according to Contexts.">fOccurences</a>[4]; <a name="l00011"></a><a class="code" href="classOccurences.html#a8617374c061522669b4b9edb767ec64a">00011</a> <span class="keywordtype">bool</span> <a class="code" href="classOccurences.html#a8617374c061522669b4b9edb767ec64a" title="True when exp has multiple occ. or occ. in higher ctxt.">fMultiOcc</a>; <a name="l00012"></a><a class="code" href="classOccurences.html#ae5688d450d44601d55818bc9f149acf1">00012</a> <span class="keywordtype">bool</span> <a class="code" href="classOccurences.html#ae5688d450d44601d55818bc9f149acf1" title="True when exp has at least one occ. outside a delay.">fOutDelayOcc</a>; <a name="l00013"></a><a class="code" href="classOccurences.html#ad39c05f110ace7adca36524daf89161f">00013</a> <span class="keywordtype">int</span> <a class="code" href="classOccurences.html#ad39c05f110ace7adca36524daf89161f" title="Maximal fix delay usage.">fMaxDelay</a>; <a name="l00014"></a>00014 <a name="l00015"></a>00015 <span class="keyword">public</span>: <a name="l00016"></a>00016 <a class="code" href="classOccurences.html#a4a5c6d16406d9646c02c3df7309bead6">Occurences</a>(<span class="keywordtype">int</span> v, <span class="keywordtype">int</span> r); <a name="l00017"></a>00017 <a name="l00018"></a>00018 <a class="code" href="classOccurences.html">Occurences</a>* <a class="code" href="classOccurences.html#ae8c2ebe876a58caa0f4868f0eb531a20" title="inc occurences in context v,r,d">incOccurences</a>(<span class="keywordtype">int</span> v, <span class="keywordtype">int</span> r, <span class="keywordtype">int</span> d); <a name="l00019"></a>00019 <a name="l00020"></a>00020 <span class="keywordtype">bool</span> <a class="code" href="classOccurences.html#a31447fb0c41844e179c3721fe1882be8" title="true if multiple occurences or occ. in higher ctxt">hasMultiOccurences</a>() <span class="keyword">const</span>; <a name="l00021"></a>00021 <span class="keywordtype">bool</span> <a class="code" href="classOccurences.html#ad043cf177d5be5d87a2a62a4e5411cb2" title="true if has occurences outside a a delay">hasOutDelayOccurences</a>() <span class="keyword">const</span>; <a name="l00022"></a>00022 <span class="keywordtype">int</span> <a class="code" href="classOccurences.html#ae7a8f070a5ad9597882c9e813b801cd7" title="return the maximal delay collected">getMaxDelay</a>() <span class="keyword">const</span>; <a name="l00023"></a>00023 }; <a name="l00024"></a>00024 <a name="l00025"></a>00025 <a name="l00030"></a><a class="code" href="classOccMarkup.html">00030</a> <span class="keyword">class </span><a class="code" href="classOccMarkup.html" title="Occurences Markup of a root tree.">OccMarkup</a> <a name="l00031"></a>00031 { <a name="l00032"></a><a class="code" href="classOccMarkup.html#ac6a75bb7b05350392a3d0c029a966fc5">00032</a> <a 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="classOccMarkup.html#ac6a75bb7b05350392a3d0c029a966fc5" title="occurences computed within this tree">fRootTree</a>; <a name="l00033"></a><a class="code" href="classOccMarkup.html#ae6604a409c3c5f07d30859e7314352a2">00033</a> <a 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="classOccMarkup.html#ae6604a409c3c5f07d30859e7314352a2" title="key used to store occurences property">fPropKey</a>; <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="classOccMarkup.html#a68c971c2ea5685754fc5544406d7c6e0" title="inc the occurence of t in context v,r">incOcc</a> (<a 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, <span class="keywordtype">int</span> v, <span class="keywordtype">int</span> r, <span class="keywordtype">int</span> d, <a 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="l00036"></a>00036 <a class="code" href="classOccurences.html">Occurences</a>* <a class="code" href="classOccMarkup.html#ac30dc5af4c0fe9524e78ae26b6705d99" title="get Occurences property of t or null">getOcc</a> (<a 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="l00037"></a>00037 <span class="keywordtype">void</span> <a class="code" href="classOccMarkup.html#a6ca170443f96829d5157ee8100a053fe" title="set Occurences property of t">setOcc</a> (<a 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="classOccurences.html">Occurences</a>* occ); <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">public</span>: <a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="classOccMarkup.html#aaba1b76dc4c0f320f1639ec0f02e68e1" title="start markup of root tree with new unique key">mark</a>(<a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> root); <a name="l00041"></a>00041 <a class="code" href="classOccurences.html">Occurences</a>* <a class="code" href="classOccMarkup.html#ade9cb60264fd5e727cfb69568cb49efa" title="occurences of subtree t within root tree">retrieve</a>(<a 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="l00042"></a>00042 }; <a name="l00043"></a>00043 <a name="l00044"></a>00044 <a name="l00045"></a>00045 <a name="l00046"></a>00046 <span class="preprocessor">#endif</span> </pre></div></div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Apr 28 23:59:59 2010 for FAUST compiler by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>