Sophie

Sophie

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

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>FAUST compiler: 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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>loop.cpp File Reference</h1><code>#include &quot;<a class="el" href="loop_8hh_source.html">loop.hh</a>&quot;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="loop_8cpp.html#abed9b9736f021c30889c9f50fe59184d">tab</a> (int n, ostream &amp;fout)</td></tr>
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="loop_8cpp.html#a3ca69c2725e993cb7da7cfc7989fab26">printlines</a> (int n, list&lt; string &gt; &amp;lines, ostream &amp;fout)</td></tr>
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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&lt; string &gt; &amp;lines, ostream &amp;fout)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void printlines </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">list&lt; string &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>lines</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>fout</em></td><td>&nbsp;</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>&nbsp;</td><td>number of tabs of indentation </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>lines</em>&nbsp;</td><td>list of lines to be printed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fout</em>&nbsp;</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&lt;string&gt;::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 &lt;&lt; *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 &amp;fout)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void tab </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>fout</em></td><td>&nbsp;</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>&nbsp;</td><td>number of tabs to print </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fout</em>&nbsp;</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 &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>;
<a name="l00014"></a>00014     <span class="keywordflow">while</span> (n--) fout &lt;&lt; <span class="charliteral">&#39;\t&#39;</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&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>