SigFloatGenKlass Class Reference

#include <klass.hh>

Inherits Klass.

Collaboration diagram for SigFloatGenKlass:
[legend]

List of all members.

Public Member Functions

 SigFloatGenKlass (const string &name)
virtual void println (int n, ostream &fout)
 Print an auxillary C++ class corresponding to an float init signal.

Detailed Description

Definition at line 212 of file klass.hh.


Constructor & Destructor Documentation

SigFloatGenKlass::SigFloatGenKlass ( const string &  name  )  [inline]

Definition at line 216 of file klass.hh.

00216 : Klass(name, "", 0, 1, false)  {}


Member Function Documentation

void SigFloatGenKlass::println ( int  n,
ostream &  fout 
) [virtual]

Print an auxillary C++ class corresponding to an float init signal.

Reimplemented from Klass.

Definition at line 1143 of file klass.cpp.

References Klass::fDeclCode, Klass::fInitCode, Klass::fKlassName, Klass::fNumInputs, Klass::fNumOutputs, Klass::fSubClassList, Klass::fZone1Code, Klass::fZone2bCode, Klass::fZone2Code, Klass::fZone3Code, ifloat(), printlines(), Klass::printLoopGraphInternal(), subst(), and tab().

01144 {
01145     list<Klass* >::iterator k;
01146 
01147     tab(n,fout); fout << "class " << fKlassName << " {";
01148 
01149     tab(n,fout); fout << "  private:";
01150         tab(n+1,fout); fout << "int \tfSamplingFreq;";
01151 
01152         for (k = fSubClassList.begin(); k != fSubClassList.end(); k++)  (*k)->println(n+1, fout);
01153 
01154         printlines(n+1, fDeclCode, fout);
01155 
01156     tab(n,fout); fout << "  public:";
01157 
01158         tab(n+1,fout); fout     << "int getNumInputs() \t{ "
01159                         << "return " << fNumInputs << "; }";
01160         tab(n+1,fout); fout     << "int getNumOutputs() \t{ "
01161                         << "return " << fNumOutputs << "; }";
01162 
01163         tab(n+1,fout); fout << "void init(int samplingFreq) {";
01164             tab(n+2,fout); fout << "fSamplingFreq = samplingFreq;";
01165             printlines(n+2, fInitCode, fout);
01166         tab(n+1,fout); fout << "}";
01167 
01168         tab(n+1,fout); fout << subst("void fill (int count, $0 output[]) {", ifloat());
01169             printlines (n+2, fZone1Code, fout);
01170             printlines (n+2, fZone2Code, fout);
01171             printlines (n+2, fZone2bCode, fout);
01172             printlines (n+2, fZone3Code, fout);
01173             printLoopGraphInternal(n+2,fout);
01174         tab(n+1,fout); fout << "}";
01175 
01176     tab(n,fout); fout << "};\n" << endl;
01177 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Jul 15 16:16:02 2010 for FAUST compiler by  doxygen 1.6.3