|
FAUST compiler
0.9.9.6b8
|


Public Member Functions | |
| SinPrim () | |
| virtual unsigned int | arity () |
| virtual bool | needCache () |
| virtual Type | infereSigType (const vector< Type > &args) |
| virtual void | sigVisit (Tree sig, sigvisitor *visitor) |
| virtual int | infereSigOrder (const vector< int > &args) |
| virtual Tree | computeSigOutput (const vector< Tree > &args) |
| virtual string | generateCode (Klass *klass, const vector< string > &args, const vector< Type > &types) |
| virtual string | generateLateq (Lateq *lateq, const vector< string > &args, const vector< Type > &types) |
Definition at line 7 of file sinprim.cpp.
| SinPrim::SinPrim | ( | ) | [inline] |
Definition at line 12 of file sinprim.cpp.
: xtended("sin") {}
| virtual unsigned int SinPrim::arity | ( | ) | [inline, virtual] |
Implements xtended.
Definition at line 14 of file sinprim.cpp.
Referenced by generateCode(), and generateLateq().
{ return 1; }

| virtual Tree SinPrim::computeSigOutput | ( | const vector< Tree > & | args | ) | [inline, virtual] |
| virtual string SinPrim::generateCode | ( | Klass * | klass, |
| const vector< string > & | args, | ||
| const vector< Type > & | types | ||
| ) | [inline, virtual] |
| virtual string SinPrim::generateLateq | ( | Lateq * | lateq, |
| const vector< string > & | args, | ||
| const vector< Type > & | types | ||
| ) | [inline, virtual] |
| virtual int SinPrim::infereSigOrder | ( | const vector< int > & | args | ) | [inline, virtual] |
| virtual Type SinPrim::infereSigType | ( | const vector< Type > & | args | ) | [inline, virtual] |
Implements xtended.
Definition at line 18 of file sinprim.cpp.
References castInterval(), and floatCast().
{
assert (args.size() == 1);
return castInterval(floatCast(args[0]), interval(-1,1));
}

| virtual bool SinPrim::needCache | ( | ) | [inline, virtual] |
| virtual void SinPrim::sigVisit | ( | Tree | sig, |
| sigvisitor * | visitor | ||
| ) | [inline, virtual] |
Definition at line 24 of file sinprim.cpp.
{}
1.8.0