Logo Search packages:      
Sourcecode: faust version File versions  Download package

ScalarCompiler Class Reference

#include <compile_scal.hh>

Inheritance diagram for ScalarCompiler:

VectorCompiler SchedulerCompiler

List of all members.


Detailed Description

Compile a list of FAUST signals into a scalar C++ class

Definition at line 39 of file compile_scal.hh.


Public Member Functions

virtual void compileMultiSignal (Tree lsig)
virtual void compileSingleSignal (Tree lsig)
Klass * getClass ()
Description * getDescription ()
 ScalarCompiler (Klass *k)
 ScalarCompiler (const string &name, const string &super, int numInputs, int numOutputs)
void setDescription (Description *descr)

Protected Member Functions

void addIncludeFile (const string &str)
void addLibrary (const string &str)
void addUIWidget (Tree path, Tree widget)
void compilePreparedSignalList (Tree lsig)
virtual string CS (Tree sig)
void ensureIotaCode ()
string generateBinOp (Tree sig, int opcode, Tree arg1, Tree arg2)
string generateButton (Tree sig, Tree label)
virtual string generateCacheCode (Tree sig, const string &exp)
string generateCheckbox (Tree sig, Tree label)
virtual string generateCode (Tree sig)
virtual void generateDelayLine (const string &ctype, const string &vname, int mxd, const string &exp)
virtual string generateDelayVec (Tree sig, const string &exp, const string &ctype, const string &vname, int mxd)
string generateDelayVecNoTemp (Tree sig, const string &exp, const string &ctype, const string &vname, int mxd)
string generateFConst (Tree sig, const string &file, const string &name)
string generateFFun (Tree sig, Tree ff, Tree largs)
virtual string generateFixDelay (Tree sig, Tree arg, Tree size)
string generateFloatCast (Tree sig, Tree x)
string generateFVar (Tree sig, const string &file, const string &name)
string generateHBargraph (Tree sig, Tree label, Tree min, Tree max, const string &exp)
string generateHSlider (Tree sig, Tree label, Tree cur, Tree min, Tree max, Tree step)
string generateInput (Tree sig, const string &idx)
string generateIntCast (Tree sig, Tree x)
string generateIota (Tree sig, Tree arg)
void generateMacroInterfaceElements (const string &pathname, Tree elements)
void generateMacroInterfaceTree (const string &pathname, Tree t)
string generateNumber (Tree sig, const string &exp)
string generateNumEntry (Tree sig, Tree label, Tree cur, Tree min, Tree max, Tree step)
string generateOutput (Tree sig, const string &idx, const string &arg1)
string generatePrefix (Tree sig, Tree x, Tree e)
string generateRDTbl (Tree sig, Tree tbl, Tree idx)
void generateRec (Tree sig, Tree var, Tree le)
string generateRecProj (Tree sig, Tree exp, int i)
string generateSelect2 (Tree sig, Tree sel, Tree s1, Tree s2)
string generateSelect3 (Tree sig, Tree sel, Tree s1, Tree s2, Tree s3)
string generateSigGen (Tree sig, Tree content)
string generateStaticSigGen (Tree sig, Tree content)
string generateStaticTable (Tree sig, Tree tsize, Tree content)
string generateTable (Tree sig, Tree tsize, Tree content)
void generateUserInterfaceElements (Tree elements)
void generateUserInterfaceTree (Tree t)
virtual string generateVariableStore (Tree sig, const string &exp)
string generateVBargraph (Tree sig, Tree label, Tree min, Tree max, const string &exp)
string generateVSlider (Tree sig, Tree label, Tree cur, Tree min, Tree max, Tree step)
void generateWidgetCode (Tree fulllabel, Tree varname, Tree sig)
void generateWidgetMacro (const string &pathname, Tree fulllabel, Tree varname, Tree sig)
string generateWRTbl (Tree sig, Tree tbl, Tree idx, Tree data)
string generateXtended (Tree sig)
bool getCompiledExpression (Tree sig, string &name)
string getFreshID (const string &prefix)
int getSharingCount (Tree t)
void getTypedNames (Type t, const string &prefix, string &ctype, string &vname)
bool getVectorNameProperty (Tree sig, string &vecname)
int pow2limit (int x)
Tree prepare (Tree L0)
Tree prepare2 (Tree L0)
Tree prepareUserInterfaceTree (Tree t)
string setCompiledExpression (Tree sig, const string &name)
void setSharingCount (Tree t, int count)
void setVectorNameProperty (Tree sig, const string &vecname)
void sharingAnalysis (Tree t)
void sharingAnnotation (int vctxt, Tree t)

Protected Attributes

Klass * fClass
property< string > fCompileProperty
Description * fDescription
bool fHasIota
bool fNeedToDeleteClass
OccMarkup fOccMarkup
Tree fSharingKey
Tree fUIRoot
property< string > fVectorProperty

Static Protected Attributes

static map< string, int > fIDCounters

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index