|
FAUST compiler
0.9.9.6b8
|
Implements a additive term, a set of mterms added together m1 + m2 + m3 + ... More...
#include <aterm.hh>
Public Member Functions | |
| aterm () | |
| create an empty aterm (equivalent to 0) More... | |
| aterm (Tree t) | |
| create a aterm from an additive exp More... | |
| const aterm & | operator+= (Tree t) |
| add in place an additive expression tree More... | |
| const aterm & | operator-= (Tree t) |
| add in place an additive expression tree More... | |
| const aterm & | operator+= (const mterm &m) |
| add in place an mterm More... | |
| const aterm & | operator-= (const mterm &m) |
| add in place an mterm More... | |
| Tree | normalizedTree () const |
| return the corresponding normalized expression tree More... | |
| ostream & | print (ostream &dst) const |
| print a aterm m1 + m2 + m3 +... More... | |
| mterm | greatestDivisor () const |
| return the greatest divisor of any two mterms More... | |
| aterm | factorize (const mterm &d) |
| reorganize the aterm by factorizing d More... | |
Private Attributes | |
| map< Tree, mterm > | fSig2MTerms |
| mapping between signatures and corresponding mterms More... | |
Implements a additive term, a set of mterms added together m1 + m2 + m3 + ...
| aterm::aterm | ( | ) |
| aterm::aterm | ( | Tree | t | ) |
create a aterm from an additive exp
create a aterm from a tree expression
Definition at line 18 of file aterm.cpp.
reorganize the aterm by factorizing d
Definition at line 241 of file aterm.cpp.
References mterm::hasDivisor(), normalizedTree(), mterm::normalizedTree(), and sigMul().
Referenced by normalizeAddTerm().


| mterm aterm::greatestDivisor | ( | ) | const |
return the greatest divisor of any two mterms
Definition at line 218 of file aterm.cpp.
References mterm::complexity(), and gcd().
Referenced by normalizeAddTerm().


| Tree aterm::normalizedTree | ( | ) | const |
return the corresponding normalized expression tree
Definition at line 59 of file aterm.cpp.
References getSigOrder(), mterm::isNegative(), isZero(), mterm::normalizedTree(), sigSub(), simplifyingAdd(), and tree().
Referenced by factorize(), and normalizeAddTerm().


add in place an additive expression tree
Add in place an additive expression tree Go down t recursively looking for additions and substractions.
Definition at line 127 of file aterm.cpp.
References isSigBinOp(), kAdd, and kSub.

add in place an mterm
Add in place an mterm.
Definition at line 180 of file aterm.cpp.
References mterm::signatureTree().

add in place an additive expression tree
Substract in place an additive expression tree Go down t recursively looking for additions and substractions.
Definition at line 154 of file aterm.cpp.
References isSigBinOp(), kAdd, and kSub.

add in place an mterm
Substract in place an mterm.
Definition at line 203 of file aterm.cpp.
References mterm::signatureTree().

| ostream & aterm::print | ( | ostream & | dst | ) | const |
print a aterm m1 + m2 + m3 +...
print an aterm in a human readable format
Definition at line 107 of file aterm.cpp.
Referenced by operator<<().

1.8.7