|
FAUST compiler
0.9.9.6b8
|
Implement complexity computation for box diagrams. More...

Go to the source code of this file.
Macros | |
| #define | BC boxComplexity |
| internal shortcut to simplify computeBoxComplexity code More... | |
Functions | |
| static int | computeBoxComplexity (Tree box) |
| Compute the complexity of a box expression. More... | |
| int | boxComplexity (Tree box) |
| Return the complexity propety of a box expression tree. More... | |
Variables | |
| Tree | BCOMPLEXITY = tree ("BCOMPLEXITY") |
| property Key used to store box complexity More... | |
Implement complexity computation for box diagrams.
Definition in file boxcomplexity.cpp.
| #define BC boxComplexity |
internal shortcut to simplify computeBoxComplexity code
Definition at line 73 of file boxcomplexity.cpp.
Referenced by computeBoxComplexity().
| int boxComplexity | ( | Tree | box | ) |
Return the complexity propety of a box expression tree.
Return the complexity propety of a box expression tree. If no complexity property exist, it is created an computeBoxComplexity is called do to the job.
| box | an evaluated box expression tree |
Definition at line 56 of file boxcomplexity.cpp.
References BCOMPLEXITY, computeBoxComplexity(), CTree::getProperty(), CTree::setProperty(), tree(), and tree2int().
Referenced by drawSchema(), and generateDiagramSchema().


|
static |
Compute the complexity of a box expression.
Compute the complexity of a box expression tree according to the complexity of its subexpressions. Basically it counts the number of boxes to be drawn. The box-diagram expression is supposed to be evaluated. It will exit with an error if it is not the case.
| box | an evaluated box expression tree |
Definition at line 87 of file boxcomplexity.cpp.
References BC, getUserData(), isBoxButton(), isBoxCheckbox(), isBoxCut(), isBoxFConst(), isBoxFFun(), isBoxFVar(), isBoxHBargraph(), isBoxHGroup(), isBoxHSlider(), isBoxInt(), isBoxMerge(), isBoxNumEntry(), isBoxPar(), isBoxPrim0(), isBoxPrim1(), isBoxPrim2(), isBoxPrim3(), isBoxPrim4(), isBoxPrim5(), isBoxReal(), isBoxRec(), isBoxSeq(), isBoxSlot(), isBoxSplit(), isBoxSymbolic(), isBoxTGroup(), isBoxVBargraph(), isBoxVGroup(), isBoxVSlider(), isBoxWaveform(), isBoxWire(), max(), min(), and name().
Referenced by boxComplexity().


property Key used to store box complexity
Definition at line 41 of file boxcomplexity.cpp.
Referenced by boxComplexity().
1.8.7