<!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: enlargedSchema.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>enlargedSchema.cpp File Reference</h1><code>#include "<a class="el" href="enlargedSchema_8cpp_source.html">enlargedSchema.h</a>"</code><br/> <code>#include "<a class="el" href="schema_8h_source.html">schema.h</a>"</code><br/> <code>#include <assert.h></code><br/> <code>#include <iostream></code><br/> <div class="dynheader"> Include dependency graph for enlargedSchema.cpp:</div> <div class="dynsection"> </div> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> </div> <p><a href="enlargedSchema_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"><a class="el" href="classschema.html">schema</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="enlargedSchema_8cpp.html#ad4c51900edaa024a3c81e55060902d2a">makeEnlargedSchema</a> (<a class="el" href="classschema.html">schema</a> *s, double width)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns an enlarged schema, but only if really needed that is if the requiered width is greater that the schema width. <a href="#ad4c51900edaa024a3c81e55060902d2a"></a><br/></td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="ad4c51900edaa024a3c81e55060902d2a"></a><!-- doxytag: member="enlargedSchema.cpp::makeEnlargedSchema" ref="ad4c51900edaa024a3c81e55060902d2a" args="(schema *s, double width)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classschema.html">schema</a>* makeEnlargedSchema </td> <td>(</td> <td class="paramtype"><a class="el" href="classschema.html">schema</a> * </td> <td class="paramname"> <em>s</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>width</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Returns an enlarged schema, but only if really needed that is if the requiered width is greater that the schema width. </p> <p>Definition at line <a class="el" href="enlargedSchema_8cpp_source.html#l00032">32</a> of file <a class="el" href="enlargedSchema_8cpp_source.html">enlargedSchema.cpp</a>.</p> <p>References <a class="el" href="schema_8h_source.html#l00085">schema::width()</a>.</p> <p>Referenced by <a class="el" href="mergeSchema_8cpp_source.html#l00035">makeMergeSchema()</a>, <a class="el" href="parSchema_8cpp_source.html#l00028">makeParSchema()</a>, <a class="el" href="recSchema_8cpp_source.html#l00034">makeRecSchema()</a>, and <a class="el" href="splitSchema_8cpp_source.html#l00034">makeSplitSchema()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00033"></a>00033 { <a name="l00034"></a>00034 <span class="keywordflow">if</span> (width > s-><a class="code" href="classschema.html#aa598f06d50f5cee518892c572453cf67">width</a>()) { <a name="l00035"></a>00035 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classenlargedSchema.html" title="An enlarged schema.">enlargedSchema</a>(s, width); <a name="l00036"></a>00036 } <span class="keywordflow">else</span> { <a name="l00037"></a>00037 <span class="keywordflow">return</span> s; <a name="l00038"></a>00038 } <a name="l00039"></a>00039 } </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> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:04 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>