<!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: loop.cpp File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>loop.cpp File Reference</h1><code>#include "<a class="el" href="loop_8hh_source.html">loop.hh</a>"</code><br/> <div class="dynheader"> Include dependency graph for loop.cpp:</div> <div class="dynsection"> </div> <p><a href="loop_8cpp_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="loop_8cpp.html#abed9b9736f021c30889c9f50fe59184d">tab</a> (int n, ostream &fout)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Print n tabs (for indentation purpose). <a href="#abed9b9736f021c30889c9f50fe59184d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="loop_8cpp.html#a3ca69c2725e993cb7da7cfc7989fab26">printlines</a> (int n, list< string > &lines, ostream &fout)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Print a list of lines. <a href="#a3ca69c2725e993cb7da7cfc7989fab26"></a><br/></td></tr> <tr><td colspan="2"><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="loop_8cpp.html#a44285cbe41b6d58a00854fead2999187">gVectorSwitch</a></td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a3ca69c2725e993cb7da7cfc7989fab26"></a><!-- doxytag: member="loop.cpp::printlines" ref="a3ca69c2725e993cb7da7cfc7989fab26" args="(int n, list< string > &lines, ostream &fout)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void printlines </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>n</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">list< string > & </td> <td class="paramname"> <em>lines</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">ostream & </td> <td class="paramname"> <em>fout</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Print a list of lines. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>number of tabs of indentation </td></tr> <tr><td valign="top"></td><td valign="top"><em>lines</em> </td><td>list of lines to be printed </td></tr> <tr><td valign="top"></td><td valign="top"><em>fout</em> </td><td>output stream </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="loop_8cpp_source.html#l00024">24</a> of file <a class="el" href="loop_8cpp_source.html">loop.cpp</a>.</p> <p>References <a class="el" href="klass_8cpp_source.html#l00063">tab()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00025"></a>00025 { <a name="l00026"></a>00026 list<string>::iterator s; <a name="l00027"></a>00027 <span class="keywordflow">for</span> (s = lines.begin(); s != lines.end(); s++) { <a name="l00028"></a>00028 <a class="code" href="klass_8cpp.html#a18a8d6ca698c9eaf2f270ffaaf19b13e">tab</a>(n, fout); fout << *s; <a name="l00029"></a>00029 } <a name="l00030"></a>00030 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="abed9b9736f021c30889c9f50fe59184d"></a><!-- doxytag: member="loop.cpp::tab" ref="abed9b9736f021c30889c9f50fe59184d" args="(int n, ostream &fout)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void tab </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>n</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">ostream & </td> <td class="paramname"> <em>fout</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Print n tabs (for indentation purpose). </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>number of tabs to print </td></tr> <tr><td valign="top"></td><td valign="top"><em>fout</em> </td><td>output stream </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="loop_8cpp_source.html#l00011">11</a> of file <a class="el" href="loop_8cpp_source.html">loop.cpp</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00012"></a>00012 { <a name="l00013"></a>00013 fout << <span class="charliteral">'\n'</span>; <a name="l00014"></a>00014 <span class="keywordflow">while</span> (n--) fout << <span class="charliteral">'\t'</span>; <a name="l00015"></a>00015 } </pre></div></p> </div> </div> <hr/><h2>Variable Documentation</h2> <a class="anchor" id="a44285cbe41b6d58a00854fead2999187"></a><!-- doxytag: member="loop.cpp::gVectorSwitch" ref="a44285cbe41b6d58a00854fead2999187" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="sigtyperules_8hh.html#a44285cbe41b6d58a00854fead2999187">gVectorSwitch</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="main_8cpp_source.html#l00131">131</a> of file <a class="el" href="main_8cpp_source.html">main.cpp</a>.</p> </div> </div> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:08 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>