<!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: SimpleType 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>SimpleType Class Reference</h1><!-- doxytag: class="SimpleType" --><!-- doxytag: inherits="AudioType" --> <p>The type of a simple numeric audio signal. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="sigtype_8hh_source.html">sigtype.hh</a>></code></p> <p>Inherits <a class="el" href="classAudioType.html">AudioType</a>.</p> <div class="dynheader"> Collaboration diagram for SimpleType:</div> <div class="dynsection"> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classSimpleType-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleType.html#a4936777508dfff819397b47849972098">SimpleType</a> (int n, int v, int c, int vec, int b, const <a class="el" href="structinterval.html">interval</a> &i)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">constructs a <a class="el" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a> from a nature a variability and a computability <a href="#a4936777508dfff819397b47849972098"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleType.html#a42cbbde2ae710800765675e3f260d2d7">print</a> (ostream &dst) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">print a <a class="el" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a> <a href="#a42cbbde2ae710800765675e3f260d2d7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classAudioType.html">AudioType</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleType.html#a07ab60207e0a744f22c0901b9473f594">promoteNature</a> (int n)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">promote the nature of a type <a href="#a07ab60207e0a744f22c0901b9473f594"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classAudioType.html">AudioType</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleType.html#aa324205f39dd20582c76c65645df3ea9">promoteVariability</a> (int v)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">promote the variability of a type <a href="#aa324205f39dd20582c76c65645df3ea9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classAudioType.html">AudioType</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleType.html#a19dc568fdbd9610eb86f43acb84643e3">promoteComputability</a> (int c)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">promote the computability of a type <a href="#a19dc568fdbd9610eb86f43acb84643e3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classAudioType.html">AudioType</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleType.html#a4c812aa072f7c657aa8af3586cbce41d">promoteVectorability</a> (int vec)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">promote the vectorability of a type <a href="#a4c812aa072f7c657aa8af3586cbce41d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classAudioType.html">AudioType</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleType.html#abfeab6d58d9b6f0e8bb96e26eec079c2">promoteBoolean</a> (int b)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">promote the booleanity of a type <a href="#abfeab6d58d9b6f0e8bb96e26eec079c2"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>The type of a simple numeric audio signal. </p> <p>Beside a computability and a variability, SimpleTypes have a "nature" indicating if they represent an integer or floating point audio signals. </p> <p>Definition at line <a class="el" href="sigtype_8hh_source.html#l00221">221</a> of file <a class="el" href="sigtype_8hh_source.html">sigtype.hh</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a4936777508dfff819397b47849972098"></a><!-- doxytag: member="SimpleType::SimpleType" ref="a4936777508dfff819397b47849972098" args="(int n, int v, int c, int vec, int b, const interval &i)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">SimpleType::SimpleType </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">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>c</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>vec</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>b</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="structinterval.html">interval</a> & </td> <td class="paramname"> <em>i</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>constructs a <a class="el" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a> from a nature a variability and a computability </p> <p>Definition at line <a class="el" href="sigtype_8hh_source.html#l00225">225</a> of file <a class="el" href="sigtype_8hh_source.html">sigtype.hh</a>.</p> <p>Referenced by <a class="el" href="sigtype_8hh_source.html#l00235">promoteBoolean()</a>, <a class="el" href="sigtype_8hh_source.html#l00233">promoteComputability()</a>, <a class="el" href="sigtype_8hh_source.html#l00231">promoteNature()</a>, <a class="el" href="sigtype_8hh_source.html#l00232">promoteVariability()</a>, and <a class="el" href="sigtype_8hh_source.html#l00234">promoteVectorability()</a>.</p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a42cbbde2ae710800765675e3f260d2d7"></a><!-- doxytag: member="SimpleType::print" ref="a42cbbde2ae710800765675e3f260d2d7" args="(ostream &dst) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ostream & SimpleType::print </td> <td>(</td> <td class="paramtype">ostream & </td> <td class="paramname"> <em>dst</em></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>print a <a class="el" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a> </p> <p>Print the content of a simple type on a stream. </p> <p>Implements <a class="el" href="classAudioType.html#a7ca8290d111be5c27770cd93e735516c">AudioType</a>.</p> <p>Definition at line <a class="el" href="sigtype_8cpp_source.html#l00053">53</a> of file <a class="el" href="sigtype_8cpp_source.html">sigtype.cpp</a>.</p> <p>References <a class="el" href="sigtype_8hh_source.html#l00104">AudioType::boolean()</a>, <a class="el" href="sigtype_8hh_source.html#l00102">AudioType::computability()</a>, <a class="el" href="sigtype_8hh_source.html#l00090">AudioType::fInterval</a>, <a class="el" href="sigtype_8hh_source.html#l00100">AudioType::nature()</a>, <a class="el" href="sigtype_8hh_source.html#l00101">AudioType::variability()</a>, and <a class="el" href="sigtype_8hh_source.html#l00103">AudioType::vectorability()</a>.</p> <p>Referenced by <a class="el" href="sigtype_8cpp_source.html#l00036">operator<<()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00054"></a>00054 { <a name="l00055"></a>00055 <span class="keywordflow">return</span> dst << <span class="stringliteral">"NR"</span>[<a class="code" href="classAudioType.html#ac4b23dd240ebd38c365d7b75cd075a4d" title="returns the kind of values (integre or floating point)">nature</a>()] <a name="l00056"></a>00056 << <span class="stringliteral">"KB?S"</span>[<a class="code" href="classAudioType.html#a277c842d4e013df519b0cfc61e9729a2" title="returns how fast values change (constant, by blocks, by samples)">variability</a>()] <a name="l00057"></a>00057 << <span class="stringliteral">"CI?E"</span>[<a class="code" href="classAudioType.html#a7a0713fc2daba47c0c307fa63a3f4ed6" title="returns when values are available (compilation, initialisation, execution)">computability</a>()] <a name="l00058"></a>00058 << <span class="stringliteral">"VS?TS"</span>[<a class="code" href="classAudioType.html#affb91ae3491bdcfb94f0a00995e6f0e3" title="returns when a signal can be vectorized">vectorability</a>()] <a name="l00059"></a>00059 << <span class="stringliteral">"N?B"</span>[<a class="code" href="classAudioType.html#a1cc9edd50c57622aa80e5c48bf67e66e" title="returns when a signal stands for a boolean value">boolean</a>()] <a name="l00060"></a>00060 << <span class="stringliteral">" "</span> << <a class="code" href="classAudioType.html#a757802d866c0558af92d75a90e61f127" title="Minimal and maximal values the signal can take.">fInterval</a>; <a name="l00061"></a>00061 } </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="abfeab6d58d9b6f0e8bb96e26eec079c2"></a><!-- doxytag: member="SimpleType::promoteBoolean" ref="abfeab6d58d9b6f0e8bb96e26eec079c2" args="(int b)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classAudioType.html">AudioType</a>* SimpleType::promoteBoolean </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>b</em></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>promote the booleanity of a type </p> <p>Implements <a class="el" href="classAudioType.html#a27a5a8ad9ea15c0d732dd9c19d99ab84">AudioType</a>.</p> <p>Definition at line <a class="el" href="sigtype_8hh_source.html#l00235">235</a> of file <a class="el" href="sigtype_8hh_source.html">sigtype.hh</a>.</p> <p>References <a class="el" href="sigtype_8hh_source.html#l00088">AudioType::fBoolean</a>, <a class="el" href="sigtype_8hh_source.html#l00086">AudioType::fComputability</a>, <a class="el" href="sigtype_8hh_source.html#l00090">AudioType::fInterval</a>, <a class="el" href="sigtype_8hh_source.html#l00084">AudioType::fNature</a>, <a class="el" href="sigtype_8hh_source.html#l00085">AudioType::fVariability</a>, <a class="el" href="sigtype_8hh_source.html#l00087">AudioType::fVectorability</a>, and <a class="el" href="sigtype_8hh_source.html#l00225">SimpleType()</a>.</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="a19dc568fdbd9610eb86f43acb84643e3"></a><!-- doxytag: member="SimpleType::promoteComputability" ref="a19dc568fdbd9610eb86f43acb84643e3" args="(int c)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classAudioType.html">AudioType</a>* SimpleType::promoteComputability </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>c</em></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>promote the computability of a type </p> <p>Implements <a class="el" href="classAudioType.html#a970a76b6fe2a3a86f2b1613aa8d7d50e">AudioType</a>.</p> <p>Definition at line <a class="el" href="sigtype_8hh_source.html#l00233">233</a> of file <a class="el" href="sigtype_8hh_source.html">sigtype.hh</a>.</p> <p>References <a class="el" href="sigtype_8hh_source.html#l00088">AudioType::fBoolean</a>, <a class="el" href="sigtype_8hh_source.html#l00086">AudioType::fComputability</a>, <a class="el" href="sigtype_8hh_source.html#l00090">AudioType::fInterval</a>, <a class="el" href="sigtype_8hh_source.html#l00084">AudioType::fNature</a>, <a class="el" href="sigtype_8hh_source.html#l00085">AudioType::fVariability</a>, <a class="el" href="sigtype_8hh_source.html#l00087">AudioType::fVectorability</a>, and <a class="el" href="sigtype_8hh_source.html#l00225">SimpleType()</a>.</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="a07ab60207e0a744f22c0901b9473f594"></a><!-- doxytag: member="SimpleType::promoteNature" ref="a07ab60207e0a744f22c0901b9473f594" args="(int n)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classAudioType.html">AudioType</a>* SimpleType::promoteNature </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>n</em></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>promote the nature of a type </p> <p>Implements <a class="el" href="classAudioType.html#ab3617b5d4f05cc4df9d296bb8ea509b1">AudioType</a>.</p> <p>Definition at line <a class="el" href="sigtype_8hh_source.html#l00231">231</a> of file <a class="el" href="sigtype_8hh_source.html">sigtype.hh</a>.</p> <p>References <a class="el" href="sigtype_8hh_source.html#l00088">AudioType::fBoolean</a>, <a class="el" href="sigtype_8hh_source.html#l00086">AudioType::fComputability</a>, <a class="el" href="sigtype_8hh_source.html#l00090">AudioType::fInterval</a>, <a class="el" href="sigtype_8hh_source.html#l00084">AudioType::fNature</a>, <a class="el" href="sigtype_8hh_source.html#l00085">AudioType::fVariability</a>, <a class="el" href="sigtype_8hh_source.html#l00087">AudioType::fVectorability</a>, and <a class="el" href="sigtype_8hh_source.html#l00225">SimpleType()</a>.</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="aa324205f39dd20582c76c65645df3ea9"></a><!-- doxytag: member="SimpleType::promoteVariability" ref="aa324205f39dd20582c76c65645df3ea9" args="(int v)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classAudioType.html">AudioType</a>* SimpleType::promoteVariability </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>v</em></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>promote the variability of a type </p> <p>Implements <a class="el" href="classAudioType.html#a5a8a98a466424d41926e1f193d1cf00b">AudioType</a>.</p> <p>Definition at line <a class="el" href="sigtype_8hh_source.html#l00232">232</a> of file <a class="el" href="sigtype_8hh_source.html">sigtype.hh</a>.</p> <p>References <a class="el" href="sigtype_8hh_source.html#l00088">AudioType::fBoolean</a>, <a class="el" href="sigtype_8hh_source.html#l00086">AudioType::fComputability</a>, <a class="el" href="sigtype_8hh_source.html#l00090">AudioType::fInterval</a>, <a class="el" href="sigtype_8hh_source.html#l00084">AudioType::fNature</a>, <a class="el" href="sigtype_8hh_source.html#l00085">AudioType::fVariability</a>, <a class="el" href="sigtype_8hh_source.html#l00087">AudioType::fVectorability</a>, and <a class="el" href="sigtype_8hh_source.html#l00225">SimpleType()</a>.</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="a4c812aa072f7c657aa8af3586cbce41d"></a><!-- doxytag: member="SimpleType::promoteVectorability" ref="a4c812aa072f7c657aa8af3586cbce41d" args="(int vec)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classAudioType.html">AudioType</a>* SimpleType::promoteVectorability </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>vec</em></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>promote the vectorability of a type </p> <p>Implements <a class="el" href="classAudioType.html#af083747a966ea278fec6128562ead9ff">AudioType</a>.</p> <p>Definition at line <a class="el" href="sigtype_8hh_source.html#l00234">234</a> of file <a class="el" href="sigtype_8hh_source.html">sigtype.hh</a>.</p> <p>References <a class="el" href="sigtype_8hh_source.html#l00088">AudioType::fBoolean</a>, <a class="el" href="sigtype_8hh_source.html#l00086">AudioType::fComputability</a>, <a class="el" href="sigtype_8hh_source.html#l00090">AudioType::fInterval</a>, <a class="el" href="sigtype_8hh_source.html#l00084">AudioType::fNature</a>, <a class="el" href="sigtype_8hh_source.html#l00085">AudioType::fVariability</a>, <a class="el" href="sigtype_8hh_source.html#l00087">AudioType::fVectorability</a>, and <a class="el" href="sigtype_8hh_source.html#l00225">SimpleType()</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="sigtype_8hh_source.html">sigtype.hh</a></li> <li><a class="el" href="sigtype_8cpp_source.html">sigtype.cpp</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:24 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>