|
FAUST compiler
0.9.9.6b8
|
#include "boxes.hh"

Go to the source code of this file.
Functions | |
| int | boxComplexity (Tree box) |
| Return the complexity propety of a box expression tree. | |
| 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().
{
Tree prop = box->getProperty(BCOMPLEXITY);
if (prop) {
return tree2int(prop);
} else {
int v = computeBoxComplexity(box);
box->setProperty(BCOMPLEXITY,tree(v));
return v;
}
}


1.8.0