Sophie

Sophie

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

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: sigtype.cpp 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&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>
<h1>sigtype.cpp</h1><a href="sigtype_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> ************************************************************************</span>
<a name="l00003"></a>00003 <span class="comment">    FAUST compiler</span>
<a name="l00004"></a>00004 <span class="comment">    Copyright (C) 2003-2004 GRAME, Centre National de Creation Musicale</span>
<a name="l00005"></a>00005 <span class="comment">    ---------------------------------------------------------------------</span>
<a name="l00006"></a>00006 <span class="comment">    This program is free software; you can redistribute it and/or modify</span>
<a name="l00007"></a>00007 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00008"></a>00008 <span class="comment">    the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00009"></a>00009 <span class="comment">    (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"></span>
<a name="l00011"></a>00011 <span class="comment">    This program is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00014"></a>00014 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00017"></a>00017 <span class="comment">    along with this program; if not, write to the Free Software</span>
<a name="l00018"></a>00018 <span class="comment">    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00019"></a>00019 <span class="comment"> ************************************************************************</span>
<a name="l00020"></a>00020 <span class="comment"> ************************************************************************/</span>
<a name="l00021"></a>00021  
<a name="l00022"></a>00022  
<a name="l00023"></a>00023  
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="sigtype_8hh.html">sigtype.hh</a>&quot;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">//------------------------------------------------------------------------------------</span>
<a name="l00028"></a>00028 <span class="comment">//</span>
<a name="l00029"></a>00029 <span class="comment">//      Surcharges de l&#39;operateur d&#39;impression &lt;&lt;</span>
<a name="l00030"></a>00030 <span class="comment">//</span>
<a name="l00031"></a>00031 <span class="comment">//------------------------------------------------------------------------------------</span>
<a name="l00032"></a>00032  
<a name="l00033"></a>00033         
<a name="l00034"></a><a class="code" href="sigtype_8hh.html#a06526bb9c97ac074a32f7a1a15681c5e">00034</a> ostream&amp; <a class="code" href="ppbox_8hh.html#a23b1718100bac6cb41d43dd01f226eef">operator&lt;&lt;</a>(ostream&amp; dst, <span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t)    { <span class="keywordflow">return</span>  t-&gt;print(dst);}
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="sigtype_8hh.html#aca4d950f832ec73442da4961fc4dd910">00036</a> ostream&amp; <a class="code" href="ppbox_8hh.html#a23b1718100bac6cb41d43dd01f226eef">operator&lt;&lt;</a>(ostream&amp; dst, <span class="keyword">const</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>&amp; t)  { <span class="keywordflow">return</span>  t.<a class="code" href="classSimpleType.html#a42cbbde2ae710800765675e3f260d2d7" title="print a SimpleType">print</a>(dst); }
<a name="l00037"></a>00037         
<a name="l00038"></a><a class="code" href="sigtype_8hh.html#a304b5bdf4e03c88f299d5ba8c5c6101a">00038</a> ostream&amp; <a class="code" href="ppbox_8hh.html#a23b1718100bac6cb41d43dd01f226eef">operator&lt;&lt;</a>(ostream&amp; dst, <span class="keyword">const</span> <a class="code" href="classTableType.html" title="The type of a table of audio data.">TableType</a>&amp; t)   { <span class="keywordflow">return</span>  t.<a class="code" href="classTableType.html#ae5d353d4bf2a6bdf8a46fdc9976d4d17" title="print a TableType">print</a>(dst); }
<a name="l00039"></a>00039         
<a name="l00040"></a><a class="code" href="sigtype_8hh.html#a049d36528c8a5bc3d938bbdb07ff0bfc">00040</a> ostream&amp; <a class="code" href="ppbox_8hh.html#a23b1718100bac6cb41d43dd01f226eef">operator&lt;&lt;</a>(ostream&amp; dst, <span class="keyword">const</span> <a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>&amp; t)  { <span class="keywordflow">return</span>  t.<a class="code" href="classTupletType.html#a4002e9a3bdf354b70317e2473f2a4164" title="Print the content of a tuplet of types on a stream.">print</a>(dst); }
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="comment">//------------------------------------------------------------------------------------</span>
<a name="l00044"></a>00044 <span class="comment">//</span>
<a name="l00045"></a>00045 <span class="comment">//      Definition des methodes d&#39;impression</span>
<a name="l00046"></a>00046 <span class="comment">//</span>
<a name="l00047"></a>00047 <span class="comment">//------------------------------------------------------------------------------------</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 
<a name="l00053"></a><a class="code" href="classSimpleType.html#a42cbbde2ae710800765675e3f260d2d7">00053</a> ostream&amp; <a class="code" href="classSimpleType.html#a42cbbde2ae710800765675e3f260d2d7" title="print a SimpleType">SimpleType::print</a>(ostream&amp; dst)<span class="keyword"> const</span>
<a name="l00054"></a>00054 <span class="keyword"></span>{
<a name="l00055"></a>00055     <span class="keywordflow">return</span>  dst &lt;&lt; <span class="stringliteral">&quot;NR&quot;</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             &lt;&lt; <span class="stringliteral">&quot;KB?S&quot;</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             &lt;&lt; <span class="stringliteral">&quot;CI?E&quot;</span>[<a class="code" href="classAudioType.html#a7a0713fc2daba47c0c307fa63a3f4ed6" title="returns when values are available (compilation, initialisation, execution)">computability</a>()]
<a name="l00058"></a>00058             &lt;&lt; <span class="stringliteral">&quot;VS?TS&quot;</span>[<a class="code" href="classAudioType.html#affb91ae3491bdcfb94f0a00995e6f0e3" title="returns when a signal can be vectorized">vectorability</a>()]
<a name="l00059"></a>00059             &lt;&lt; <span class="stringliteral">&quot;N?B&quot;</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             &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; <a class="code" href="classAudioType.html#a757802d866c0558af92d75a90e61f127" title="Minimal and maximal values the signal can take.">fInterval</a>; 
<a name="l00061"></a>00061 }
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 
<a name="l00067"></a><a class="code" href="classTableType.html#ae5d353d4bf2a6bdf8a46fdc9976d4d17">00067</a> ostream&amp; <a class="code" href="classTableType.html#ae5d353d4bf2a6bdf8a46fdc9976d4d17" title="print a TableType">TableType::print</a>(ostream&amp; dst)<span class="keyword"> const</span>
<a name="l00068"></a>00068 <span class="keyword"></span>{
<a name="l00069"></a>00069     dst &lt;&lt; <span class="stringliteral">&quot;KB?S&quot;</span>[<a class="code" href="classAudioType.html#a277c842d4e013df519b0cfc61e9729a2" title="returns how fast values change (constant, by blocks, by samples)">variability</a>()]
<a name="l00070"></a>00070         &lt;&lt; <span class="stringliteral">&quot;CI?E&quot;</span>[<a class="code" href="classAudioType.html#a7a0713fc2daba47c0c307fa63a3f4ed6" title="returns when values are available (compilation, initialisation, execution)">computability</a>()]
<a name="l00071"></a>00071         &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; <a class="code" href="classAudioType.html#a757802d866c0558af92d75a90e61f127" title="Minimal and maximal values the signal can take.">fInterval</a> 
<a name="l00072"></a>00072         &lt;&lt; <span class="stringliteral">&quot;:Table(&quot;</span>;
<a name="l00073"></a>00073     <a class="code" href="classTableType.html#a5bc04052eddd895083e330b135bb6d0b" title="type of that data stored in the table">fContent</a>-&gt;print(dst);
<a name="l00074"></a>00074     <span class="keywordflow">return</span> dst &lt;&lt; <span class="charliteral">&#39;)&#39;</span>; 
<a name="l00075"></a>00075 }
<a name="l00076"></a>00076     
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 
<a name="l00082"></a><a class="code" href="classTupletType.html#a4002e9a3bdf354b70317e2473f2a4164">00082</a> ostream&amp; <a class="code" href="classTupletType.html#a4002e9a3bdf354b70317e2473f2a4164" title="Print the content of a tuplet of types on a stream.">TupletType::print</a>(ostream&amp; dst)<span class="keyword"> const</span>
<a name="l00083"></a>00083 <span class="keyword"></span>{
<a name="l00084"></a>00084     dst &lt;&lt; <span class="stringliteral">&quot;KB?S&quot;</span>[<a class="code" href="classAudioType.html#a277c842d4e013df519b0cfc61e9729a2" title="returns how fast values change (constant, by blocks, by samples)">variability</a>()]
<a name="l00085"></a>00085         &lt;&lt; <span class="stringliteral">&quot;CI?E&quot;</span>[<a class="code" href="classAudioType.html#a7a0713fc2daba47c0c307fa63a3f4ed6" title="returns when values are available (compilation, initialisation, execution)">computability</a>()] 
<a name="l00086"></a>00086         &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; <a class="code" href="classAudioType.html#a757802d866c0558af92d75a90e61f127" title="Minimal and maximal values the signal can take.">fInterval</a>
<a name="l00087"></a>00087         &lt;&lt; <span class="stringliteral">&quot; : {&quot;</span>; 
<a name="l00088"></a>00088     <span class="keywordtype">string</span> sep = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00089"></a>00089     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="classTupletType.html#a4b373147d5274a6d3dda20556a4aa801">fComponents</a>.size(); i++, sep=<span class="stringliteral">&quot;*&quot;</span>) {
<a name="l00090"></a>00090         dst &lt;&lt; sep;
<a name="l00091"></a>00091         <a class="code" href="classTupletType.html#a4b373147d5274a6d3dda20556a4aa801">fComponents</a>[i]-&gt;print(dst);
<a name="l00092"></a>00092     } 
<a name="l00093"></a>00093     dst &lt;&lt; <span class="charliteral">&#39;}&#39;</span>;
<a name="l00094"></a>00094     <span class="keywordflow">return</span>  dst; 
<a name="l00095"></a>00095 }
<a name="l00096"></a>00096 
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 <span class="comment">//------------------------------------------------------------------------------------</span>
<a name="l00099"></a>00099 <span class="comment">//</span>
<a name="l00100"></a>00100 <span class="comment">//      Construction des types</span>
<a name="l00101"></a>00101 <span class="comment">//      t := p, table(t), t|t, t*t</span>
<a name="l00102"></a>00102 <span class="comment">//</span>
<a name="l00103"></a>00103 <span class="comment">//------------------------------------------------------------------------------------</span>
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="comment">// Essential predefined types</span>
<a name="l00106"></a>00106 
<a name="l00107"></a><a class="code" href="sigtype_8hh.html#ab71a699e843f01d4871f97a41c143829">00107</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#ab71a699e843f01d4871f97a41c143829">TINT</a>   = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a21138ad5418c2d97ac10a35fd48c0503">kKonst</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da360460476ae5f48b0e6125c0b2e6bf73">kComp</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00108"></a><a class="code" href="sigtype_8hh.html#aa218516eab5a26ec3cfefedac0e56a8e">00108</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#aa218516eab5a26ec3cfefedac0e56a8e">TREAL</a>  = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06cabd8b038fc1f31f03f96a41107d3ac13d">kReal</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a21138ad5418c2d97ac10a35fd48c0503">kKonst</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da360460476ae5f48b0e6125c0b2e6bf73">kComp</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00109"></a>00109 
<a name="l00110"></a><a class="code" href="sigtype_8hh.html#a85e7c689125b8a9d14fdb2bc8c2af217">00110</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#a85e7c689125b8a9d14fdb2bc8c2af217">TKONST</a> = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a21138ad5418c2d97ac10a35fd48c0503">kKonst</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da360460476ae5f48b0e6125c0b2e6bf73">kComp</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00111"></a><a class="code" href="sigtype_8hh.html#a2e683cdf4ef39a0a66047295c7e4759d">00111</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#a2e683cdf4ef39a0a66047295c7e4759d">TBLOCK</a> = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a2efe081feb92c3bc30a7ae2dca084901">kBlock</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da360460476ae5f48b0e6125c0b2e6bf73">kComp</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00112"></a><a class="code" href="sigtype_8hh.html#afcf91448d32ad8d2f21fc064af6417bf">00112</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#afcf91448d32ad8d2f21fc064af6417bf">TSAMP</a>  = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a415bf3edc164c8f259f328ff6dc0529a">kSamp</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da360460476ae5f48b0e6125c0b2e6bf73">kComp</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00113"></a>00113 
<a name="l00114"></a><a class="code" href="sigtype_8hh.html#af87527edd3fd201d70550428770bf391">00114</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#af87527edd3fd201d70550428770bf391">TCOMP</a>  = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a21138ad5418c2d97ac10a35fd48c0503">kKonst</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da360460476ae5f48b0e6125c0b2e6bf73">kComp</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00115"></a><a class="code" href="sigtype_8hh.html#aac63824d41e799223deb64e8b860cb9b">00115</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#aac63824d41e799223deb64e8b860cb9b">TINIT</a>  = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a21138ad5418c2d97ac10a35fd48c0503">kKonst</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da129c5fd2c640e351170c8ede47250479">kInit</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00116"></a><a class="code" href="sigtype_8hh.html#aafcb036dc5fa7bce7dff6387201b39a5">00116</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#aafcb036dc5fa7bce7dff6387201b39a5">TEXEC</a>  = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a21138ad5418c2d97ac10a35fd48c0503">kKonst</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da16e899f343f7478630c421804745bd95">kExec</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 <span class="comment">// more predefined types</span>
<a name="l00119"></a>00119 
<a name="l00120"></a><a class="code" href="sigtype_8hh.html#ad2a2a2ed670dc4c62ea294183343aa66">00120</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#ad2a2a2ed670dc4c62ea294183343aa66">TINPUT</a> = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06cabd8b038fc1f31f03f96a41107d3ac13d">kReal</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a415bf3edc164c8f259f328ff6dc0529a">kSamp</a>, <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da16e899f343f7478630c421804745bd95">kExec</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00121"></a><a class="code" href="sigtype_8hh.html#a23c558594cc9063e0289e21dd4687fac">00121</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#a23c558594cc9063e0289e21dd4687fac">TGUI</a>   = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06cabd8b038fc1f31f03f96a41107d3ac13d">kReal</a>, <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a2efe081feb92c3bc30a7ae2dca084901">kBlock</a>,<a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da16e899f343f7478630c421804745bd95">kExec</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00122"></a><a class="code" href="sigtype_8hh.html#a18854f209744bdb46c38444e481f78ab">00122</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#a18854f209744bdb46c38444e481f78ab">INT_TGUI</a>   = <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(<a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>,  <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a2efe081feb92c3bc30a7ae2dca084901">kBlock</a>,<a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da16e899f343f7478630c421804745bd95">kExec</a>, <a class="code" href="sigtype_8hh.html#abed82baf7f470b522273a3e37c24c600ac0cc86b199bf7e441423650c6e7e9118">kVect</a>, <a class="code" href="sigtype_8hh.html#a61dadd085c1777f559549e05962b2c9ea0136f5ab04e2f1d76afdb6b347b49059">kNum</a>, <a class="code" href="structinterval.html">interval</a>());
<a name="l00123"></a>00123 <span class="comment">//Type TREC   = new SimpleType(kInt,  kSamp, kInit, kVect, kNum, interval()); // kVect ou kScal ?</span>
<a name="l00124"></a><a class="code" href="sigtype_8hh.html#ade278a93e3fbeed9cb7216e9623ecd08">00124</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#ade278a93e3fbeed9cb7216e9623ecd08">TREC</a>   = TINT;
<a name="l00125"></a>00125         
<a name="l00126"></a>00126 
<a name="l00127"></a><a class="code" href="sigtype_8hh.html#a4dca25836fa52b4e836eb6f08555d176">00127</a> <a class="code" href="classP.html">Type</a> <a class="code" href="interval_8hh.html#a53fd1fed807fb0c54af1cdd498d62831">operator| </a>( <span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t1, <span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t2)
<a name="l00128"></a>00128 {
<a name="l00129"></a>00129     <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>  *st1, *st2;
<a name="l00130"></a>00130     <a class="code" href="classTableType.html" title="The type of a table of audio data.">TableType</a>   *tt1, *tt2;
<a name="l00131"></a>00131     <a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>  *nt1, *nt2;
<a name="l00132"></a>00132     
<a name="l00133"></a>00133     <span class="keywordflow">if</span> ( (st1 = <a class="code" href="sigtype_8cpp.html#ab37344c874f1fa0e61ca34cab640e7f5">isSimpleType</a>(t1)) &amp;&amp; (st2 = <a class="code" href="sigtype_8cpp.html#ab37344c874f1fa0e61ca34cab640e7f5">isSimpleType</a>(t2)) ) {
<a name="l00134"></a>00134         
<a name="l00135"></a>00135         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>(  st1-&gt;<a class="code" href="classAudioType.html#ac4b23dd240ebd38c365d7b75cd075a4d" title="returns the kind of values (integre or floating point)">nature</a>()|st2-&gt;<a class="code" href="classAudioType.html#ac4b23dd240ebd38c365d7b75cd075a4d" title="returns the kind of values (integre or floating point)">nature</a>(),
<a name="l00136"></a>00136                     st1-&gt;<a class="code" href="classAudioType.html#a277c842d4e013df519b0cfc61e9729a2" title="returns how fast values change (constant, by blocks, by samples)">variability</a>()|st2-&gt;<a class="code" href="classAudioType.html#a277c842d4e013df519b0cfc61e9729a2" title="returns how fast values change (constant, by blocks, by samples)">variability</a>(),
<a name="l00137"></a>00137                     st1-&gt;<a class="code" href="classAudioType.html#a7a0713fc2daba47c0c307fa63a3f4ed6" title="returns when values are available (compilation, initialisation, execution)">computability</a>()|st2-&gt;<a class="code" href="classAudioType.html#a7a0713fc2daba47c0c307fa63a3f4ed6" title="returns when values are available (compilation, initialisation, execution)">computability</a>(),
<a name="l00138"></a>00138                     st1-&gt;<a class="code" href="classAudioType.html#affb91ae3491bdcfb94f0a00995e6f0e3" title="returns when a signal can be vectorized">vectorability</a>()|st2-&gt;<a class="code" href="classAudioType.html#affb91ae3491bdcfb94f0a00995e6f0e3" title="returns when a signal can be vectorized">vectorability</a>(),
<a name="l00139"></a>00139                     st1-&gt;<a class="code" href="classAudioType.html#a1cc9edd50c57622aa80e5c48bf67e66e" title="returns when a signal stands for a boolean value">boolean</a>()|st2-&gt;<a class="code" href="classAudioType.html#a1cc9edd50c57622aa80e5c48bf67e66e" title="returns when a signal stands for a boolean value">boolean</a>(),
<a name="l00140"></a>00140                     <a class="code" href="structinterval.html">interval</a>() 
<a name="l00141"></a>00141                     );
<a name="l00142"></a>00142         
<a name="l00143"></a>00143     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( (tt1 = <a class="code" href="sigtype_8cpp.html#ac8b4c7377bb99f19596db76c5a674d03">isTableType</a>(t1)) &amp;&amp; (tt2 = <a class="code" href="sigtype_8cpp.html#ac8b4c7377bb99f19596db76c5a674d03">isTableType</a>(t2)) ) {
<a name="l00144"></a>00144         
<a name="l00145"></a>00145         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classTableType.html" title="The type of a table of audio data.">TableType</a>( tt1-&gt;<a class="code" href="classTableType.html#af3800dbe6a31d62ea4fd2ee7fb928ade" title="return the type of data store in the table">content</a>() | tt2-&gt;<a class="code" href="classTableType.html#af3800dbe6a31d62ea4fd2ee7fb928ade" title="return the type of data store in the table">content</a>() );
<a name="l00146"></a>00146         
<a name="l00147"></a>00147     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( (nt1 = <a class="code" href="sigtype_8cpp.html#a78f2abfce752620d0b4993359f7dcb38">isTupletType</a>(t1)) &amp;&amp; (nt2 = <a class="code" href="sigtype_8cpp.html#a78f2abfce752620d0b4993359f7dcb38">isTupletType</a>(t2)) ) {
<a name="l00148"></a>00148         
<a name="l00149"></a>00149         vector&lt;Type&gt; v;
<a name="l00150"></a>00150         <span class="keywordtype">int</span> n = <a class="code" href="interval_8hh.html#a2f8edc4561e9744ed4233b205fa7ec32">min</a>(nt1-&gt;<a class="code" href="classTupletType.html#a3deeade48555edeb3bef176fcf907239">arity</a>(), nt2-&gt;<a class="code" href="classTupletType.html#a3deeade48555edeb3bef176fcf907239">arity</a>());
<a name="l00151"></a>00151         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;n; i++) { v.push_back( (*nt1)[i] | (*nt2)[i]); }
<a name="l00152"></a>00152         <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>( v );
<a name="l00153"></a>00153         
<a name="l00154"></a>00154     } <span class="keywordflow">else</span> {
<a name="l00155"></a>00155         
<a name="l00156"></a>00156         cerr &lt;&lt; <span class="stringliteral">&quot;Error : trying to combine incompatible types, &quot;</span> &lt;&lt; t1 &lt;&lt; <span class="stringliteral">&quot; and &quot;</span> &lt;&lt; t2 &lt;&lt; endl;
<a name="l00157"></a>00157         exit(1);
<a name="l00158"></a>00158         <span class="keywordflow">return</span> 0;
<a name="l00159"></a>00159     }
<a name="l00160"></a>00160 }
<a name="l00161"></a>00161 
<a name="l00162"></a><a class="code" href="sigtype_8hh.html#af7f2d7227355b2ebc9364d1bbccf3a9f">00162</a> <span class="keywordtype">bool</span> <a class="code" href="interval_8hh.html#a9962bbe261c8872a42a1125b7f0ff476">operator== </a>( <span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t1, <span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t2)
<a name="l00163"></a>00163 {
<a name="l00164"></a>00164     <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>  *st1, *st2;
<a name="l00165"></a>00165     <a class="code" href="classTableType.html" title="The type of a table of audio data.">TableType</a>   *tt1, *tt2;
<a name="l00166"></a>00166     <a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>  *nt1, *nt2;
<a name="l00167"></a>00167 
<a name="l00168"></a>00168     <span class="keywordflow">if</span> (t1-&gt;variability() != t2-&gt;variability())     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00169"></a>00169     <span class="keywordflow">if</span> (t1-&gt;computability() != t2-&gt;computability()) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00170"></a>00170     
<a name="l00171"></a>00171     <span class="keywordflow">if</span> ( (st1 = <a class="code" href="sigtype_8cpp.html#ab37344c874f1fa0e61ca34cab640e7f5">isSimpleType</a>(t1)) &amp;&amp; (st2 = <a class="code" href="sigtype_8cpp.html#ab37344c874f1fa0e61ca34cab640e7f5">isSimpleType</a>(t2)) ) <span class="keywordflow">return</span> (st1-&gt;<a class="code" href="classAudioType.html#ac4b23dd240ebd38c365d7b75cd075a4d" title="returns the kind of values (integre or floating point)">nature</a>() == st2-&gt;<a class="code" href="classAudioType.html#ac4b23dd240ebd38c365d7b75cd075a4d" title="returns the kind of values (integre or floating point)">nature</a>())&amp;&amp;(st1-&gt;<a class="code" href="classAudioType.html#affb91ae3491bdcfb94f0a00995e6f0e3" title="returns when a signal can be vectorized">vectorability</a>() == st2-&gt;<a class="code" href="classAudioType.html#affb91ae3491bdcfb94f0a00995e6f0e3" title="returns when a signal can be vectorized">vectorability</a>())&amp;&amp;(st1-&gt;<a class="code" href="classAudioType.html#a1cc9edd50c57622aa80e5c48bf67e66e" title="returns when a signal stands for a boolean value">boolean</a>() == st2-&gt;<a class="code" href="classAudioType.html#a1cc9edd50c57622aa80e5c48bf67e66e" title="returns when a signal stands for a boolean value">boolean</a>());
<a name="l00172"></a>00172     <span class="keywordflow">if</span> ( (tt1 = <a class="code" href="sigtype_8cpp.html#ac8b4c7377bb99f19596db76c5a674d03">isTableType</a>(t1)) &amp;&amp; (tt2 = <a class="code" href="sigtype_8cpp.html#ac8b4c7377bb99f19596db76c5a674d03">isTableType</a>(t2)) )   <span class="keywordflow">return</span> tt1-&gt;<a class="code" href="classTableType.html#af3800dbe6a31d62ea4fd2ee7fb928ade" title="return the type of data store in the table">content</a>()== tt2-&gt;<a class="code" href="classTableType.html#af3800dbe6a31d62ea4fd2ee7fb928ade" title="return the type of data store in the table">content</a>(); 
<a name="l00173"></a>00173     <span class="keywordflow">if</span> ( (nt1 = <a class="code" href="sigtype_8cpp.html#a78f2abfce752620d0b4993359f7dcb38">isTupletType</a>(t1)) &amp;&amp; (nt2 = <a class="code" href="sigtype_8cpp.html#a78f2abfce752620d0b4993359f7dcb38">isTupletType</a>(t2)) ) {
<a name="l00174"></a>00174         <span class="keywordtype">int</span> a1 = nt1-&gt;<a class="code" href="classTupletType.html#a3deeade48555edeb3bef176fcf907239">arity</a>();
<a name="l00175"></a>00175         <span class="keywordtype">int</span> a2 = nt2-&gt;<a class="code" href="classTupletType.html#a3deeade48555edeb3bef176fcf907239">arity</a>();
<a name="l00176"></a>00176         <span class="keywordflow">if</span> (a1 == a2) {
<a name="l00177"></a>00177             <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;a1; i++)  { <span class="keywordflow">if</span> ((*nt1)[i] != (*nt2)[i]) <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00178"></a>00178             <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00179"></a>00179         } <span class="keywordflow">else</span> {
<a name="l00180"></a>00180             <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00181"></a>00181         }
<a name="l00182"></a>00182     }
<a name="l00183"></a>00183     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00184"></a>00184 }
<a name="l00185"></a>00185         
<a name="l00186"></a><a class="code" href="sigtype_8hh.html#af85ef77afc9efecbeef8264c31e3ac68">00186</a> <span class="keywordtype">bool</span> <a class="code" href="interval_8hh.html#a6dba1cd8dede14d793f7696c3190b8d8">operator&lt;= </a>( <span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t1, <span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t2)
<a name="l00187"></a>00187 {
<a name="l00188"></a>00188     <span class="keywordflow">return</span> (t1|t2) == t2;
<a name="l00189"></a>00189 }
<a name="l00190"></a>00190 
<a name="l00191"></a>00191         
<a name="l00192"></a>00192 
<a name="l00193"></a><a class="code" href="sigtype_8hh.html#ae27b8f369c45c9089ec6ddff11eec493">00193</a> <a class="code" href="classP.html">Type</a> <a class="code" href="interval_8hh.html#a97008fc77c46241b355ba31c34068c1b">operator* 	</a>(<span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t1, <span class="keyword">const</span> <a class="code" href="classP.html">Type</a>&amp; t2)
<a name="l00194"></a>00194 {
<a name="l00195"></a>00195     vector&lt;Type&gt;    v;
<a name="l00196"></a>00196     
<a name="l00197"></a>00197     <a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>* nt1 = <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>*<span class="keyword">&gt;</span>((<a class="code" href="classAudioType.html" title="The Root class for all audio data types.">AudioType</a>*)t1);
<a name="l00198"></a>00198     <a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>* nt2 = <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>*<span class="keyword">&gt;</span>((<a class="code" href="classAudioType.html" title="The Root class for all audio data types.">AudioType</a>*)t2);
<a name="l00199"></a>00199     
<a name="l00200"></a>00200     <span class="keywordflow">if</span> (nt1) {
<a name="l00201"></a>00201         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;nt1-&gt;<a class="code" href="classTupletType.html#a3deeade48555edeb3bef176fcf907239">arity</a>(); i++) {
<a name="l00202"></a>00202             v.push_back((*nt1)[i]);
<a name="l00203"></a>00203         }
<a name="l00204"></a>00204     } <span class="keywordflow">else</span> {
<a name="l00205"></a>00205         v.push_back(t1);
<a name="l00206"></a>00206     }
<a name="l00207"></a>00207     
<a name="l00208"></a>00208     <span class="keywordflow">if</span> (nt2) {
<a name="l00209"></a>00209         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;nt2-&gt;<a class="code" href="classTupletType.html#a3deeade48555edeb3bef176fcf907239">arity</a>(); i++) {
<a name="l00210"></a>00210             v.push_back((*nt2)[i]);
<a name="l00211"></a>00211         }
<a name="l00212"></a>00212     } <span class="keywordflow">else</span> {
<a name="l00213"></a>00213         v.push_back(t2);
<a name="l00214"></a>00214     }
<a name="l00215"></a>00215     <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>(v);   
<a name="l00216"></a>00216 }
<a name="l00217"></a>00217     
<a name="l00218"></a>00218 
<a name="l00219"></a><a class="code" href="sigtype_8hh.html#ab37344c874f1fa0e61ca34cab640e7f5">00219</a> <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>* <a class="code" href="sigtype_8cpp.html#ab37344c874f1fa0e61ca34cab640e7f5">isSimpleType</a>(<a class="code" href="classAudioType.html" title="The Root class for all audio data types.">AudioType</a>* t)  { <span class="keywordflow">return</span> <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>*<span class="keyword">&gt;</span>(t); }
<a name="l00220"></a><a class="code" href="sigtype_8hh.html#ac8b4c7377bb99f19596db76c5a674d03">00220</a> <a class="code" href="classTableType.html" title="The type of a table of audio data.">TableType</a>*  <a class="code" href="sigtype_8cpp.html#ac8b4c7377bb99f19596db76c5a674d03">isTableType</a>(<a class="code" href="classAudioType.html" title="The Root class for all audio data types.">AudioType</a>* t)   { <span class="keywordflow">return</span> <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classTableType.html" title="The type of a table of audio data.">TableType</a>*<span class="keyword">&gt;</span>(t);  }
<a name="l00221"></a><a class="code" href="sigtype_8hh.html#a78f2abfce752620d0b4993359f7dcb38">00221</a> <a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>* <a class="code" href="sigtype_8cpp.html#a78f2abfce752620d0b4993359f7dcb38">isTupletType</a>(<a class="code" href="classAudioType.html" title="The Root class for all audio data types.">AudioType</a>* t)  { <span class="keywordflow">return</span> <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classTupletType.html" title="The type of a tuplet of data.">TupletType</a>*<span class="keyword">&gt;</span>(t); }
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 
<a name="l00224"></a>00224 
<a name="l00225"></a>00225 <span class="comment">//--------------------------------------------------</span>
<a name="l00226"></a>00226 <span class="comment">// verification de type</span>
<a name="l00227"></a>00227 
<a name="l00228"></a><a class="code" href="sigtype_8hh.html#aebe495204f7e4e178cfb023eb03c3e24">00228</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#aebe495204f7e4e178cfb023eb03c3e24" title="verifie que t est entier">checkInt</a>(<a class="code" href="classP.html">Type</a> t)
<a name="l00229"></a>00229 {
<a name="l00230"></a>00230     <span class="comment">// verifie que t est entier</span>
<a name="l00231"></a>00231     <a class="code" href="classSimpleType.html" title="The type of a simple numeric audio signal.">SimpleType</a>* st = <a class="code" href="sigtype_8cpp.html#ab37344c874f1fa0e61ca34cab640e7f5">isSimpleType</a>(t);
<a name="l00232"></a>00232     <span class="keywordflow">if</span> (st == 0 || st-&gt;<a class="code" href="classAudioType.html#ac4b23dd240ebd38c365d7b75cd075a4d" title="returns the kind of values (integre or floating point)">nature</a>() &gt; <a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>) {
<a name="l00233"></a>00233         cerr &lt;&lt; <span class="stringliteral">&quot;Error : checkInt failed for type &quot;</span> &lt;&lt; t &lt;&lt; endl;
<a name="l00234"></a>00234         exit(1);
<a name="l00235"></a>00235     }
<a name="l00236"></a>00236     <span class="keywordflow">return</span> t;
<a name="l00237"></a>00237 }
<a name="l00238"></a>00238 
<a name="l00239"></a><a class="code" href="sigtype_8hh.html#a267208a768c70317830a4f96dfdf9c9b">00239</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#a267208a768c70317830a4f96dfdf9c9b" title="verifie que t est constant">checkKonst</a>(<a class="code" href="classP.html">Type</a> t)
<a name="l00240"></a>00240 {
<a name="l00241"></a>00241     <span class="comment">// verifie que t est constant</span>
<a name="l00242"></a>00242     <span class="keywordflow">if</span> (t-&gt;variability() &gt; <a class="code" href="sigtype_8hh.html#a726ca809ffd3d67ab4b8476646f26635a21138ad5418c2d97ac10a35fd48c0503">kKonst</a>) {
<a name="l00243"></a>00243         cerr &lt;&lt; <span class="stringliteral">&quot;Error : checkKonst failed for type &quot;</span> &lt;&lt; t &lt;&lt; endl;
<a name="l00244"></a>00244         exit(1);
<a name="l00245"></a>00245     }
<a name="l00246"></a>00246     <span class="keywordflow">return</span> t;
<a name="l00247"></a>00247 }   
<a name="l00248"></a>00248 
<a name="l00249"></a><a class="code" href="sigtype_8hh.html#a69c0edc5ba42dd64e897a77765021258">00249</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#a69c0edc5ba42dd64e897a77765021258" title="verifie que t est connu a l&amp;#39;initialisation">checkInit</a>(<a class="code" href="classP.html">Type</a> t)
<a name="l00250"></a>00250 {
<a name="l00251"></a>00251     <span class="comment">// verifie que t est connu a l&#39;initialisation</span>
<a name="l00252"></a>00252     <span class="keywordflow">if</span> (t-&gt;computability() &gt; <a class="code" href="sigtype_8hh.html#a0411cd49bb5b71852cecd93bcbf0ca2da129c5fd2c640e351170c8ede47250479">kInit</a>) {
<a name="l00253"></a>00253         cerr &lt;&lt; <span class="stringliteral">&quot;Error : checkInit failed for type &quot;</span> &lt;&lt; t &lt;&lt; endl;
<a name="l00254"></a>00254         exit(1);
<a name="l00255"></a>00255     }
<a name="l00256"></a>00256     <span class="keywordflow">return</span> t;
<a name="l00257"></a>00257 }   
<a name="l00258"></a>00258 
<a name="l00259"></a><a class="code" href="sigtype_8hh.html#acc5d2eda577ba47709fcd2bcaa748092">00259</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#acc5d2eda577ba47709fcd2bcaa748092" title="verifie que t est connu a l&amp;#39;initialisation, constant et entier">checkIntParam</a>(<a class="code" href="classP.html">Type</a> t)
<a name="l00260"></a>00260 {
<a name="l00261"></a>00261     <span class="keywordflow">return</span> <a class="code" href="sigtype_8cpp.html#a69c0edc5ba42dd64e897a77765021258" title="verifie que t est connu a l&amp;#39;initialisation">checkInit</a>(<a class="code" href="sigtype_8cpp.html#a267208a768c70317830a4f96dfdf9c9b" title="verifie que t est constant">checkKonst</a>(<a class="code" href="sigtype_8cpp.html#aebe495204f7e4e178cfb023eb03c3e24" title="verifie que t est entier">checkInt</a>(t)));
<a name="l00262"></a>00262 }
<a name="l00263"></a>00263 
<a name="l00264"></a><a class="code" href="sigtype_8hh.html#a69bb71019ffd4718e62311ad09852e29">00264</a> <a class="code" href="classP.html">Type</a> <a class="code" href="sigtype_8cpp.html#a69bb71019ffd4718e62311ad09852e29" title="verifie que wr est compatible avec le contenu de tbl">checkWRTbl</a>(<a class="code" href="classP.html">Type</a> tbl, <a class="code" href="classP.html">Type</a> wr)
<a name="l00265"></a>00265 {
<a name="l00266"></a>00266     <span class="comment">// verifie que wr est compatible avec le contenu de tbl</span>
<a name="l00267"></a>00267     <span class="keywordflow">if</span> (wr-&gt;nature() &gt; tbl-&gt;nature()) {
<a name="l00268"></a>00268         cerr &lt;&lt; <span class="stringliteral">&quot;Error : checkWRTbl failed, the content of  &quot;</span> &lt;&lt; tbl &lt;&lt; <span class="stringliteral">&quot; is incompatible with &quot;</span> &lt;&lt; wr &lt;&lt; endl;
<a name="l00269"></a>00269         exit(1);
<a name="l00270"></a>00270     }
<a name="l00271"></a>00271     <span class="keywordflow">return</span> tbl;
<a name="l00272"></a>00272 }       
<a name="l00273"></a>00273 
<a name="l00279"></a><a class="code" href="sigtype_8hh.html#a93b58aa70785fe4a2c0f520fdbc246c9">00279</a> <span class="keywordtype">int</span> <a class="code" href="sigtype_8cpp.html#a93b58aa70785fe4a2c0f520fdbc246c9" title="Check is a type is appropriate for a delay.">checkDelayInterval</a>(<a class="code" href="classP.html">Type</a> t)
<a name="l00280"></a>00280 {
<a name="l00281"></a>00281     <a class="code" href="structinterval.html">interval</a> i = t-&gt;getInterval();
<a name="l00282"></a>00282     <span class="keywordflow">if</span> (i.<a class="code" href="structinterval.html#a96c78d5d63b319bc354c0ba728305e68" title="true if it is a valid interval">valid</a> &amp;&amp; i.<a class="code" href="structinterval.html#a097d8cc2067534f1fe88d6a8386af0cd" title="minimal value">lo</a> &gt;= 0) {
<a name="l00283"></a>00283         <span class="keywordflow">return</span> int(i.<a class="code" href="structinterval.html#ae97c1d6052f6b8326a346b4c2a2d4b30" title="maximal value">hi</a>+0.5);
<a name="l00284"></a>00284     } <span class="keywordflow">else</span> {
<a name="l00285"></a>00285         <span class="comment">//cerr &lt;&lt; &quot;checkDelayInterval failed for : &quot; &lt;&lt; i &lt;&lt; endl;</span>
<a name="l00286"></a>00286         <span class="keywordflow">return</span> -1;
<a name="l00287"></a>00287     }
<a name="l00288"></a>00288 }       
<a name="l00289"></a>00289     
<a name="l00290"></a>00290 
<a name="l00291"></a>00291 <span class="comment">// Donne le nom du type C correspondant �la nature d&#39;un signal</span>
<a name="l00292"></a><a class="code" href="sigtype_8hh.html#a1add1ece6baaeac60b4e46978f5955f4">00292</a> <span class="keywordtype">string</span> <a class="code" href="sigtype_8cpp.html#a1add1ece6baaeac60b4e46978f5955f4">cType</a> (<a class="code" href="classP.html">Type</a> t)
<a name="l00293"></a>00293 {
<a name="l00294"></a>00294     <span class="keywordflow">return</span> (t-&gt;nature() == <a class="code" href="sigtype_8hh.html#adc29c2ff13d900c2f185ee95427fb06ca9bb31be73c01d40428195449f62588ac">kInt</a>) ? <span class="stringliteral">&quot;int&quot;</span> : <span class="stringliteral">&quot;float&quot;</span>;
<a name="l00295"></a>00295 }
</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&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>