73 #define BC boxComplexity
98 Tree t1, t2, ff, label, cur,
min,
max, step, type,
name, file;
105 else if (
isBoxInt(box, &i))
return 1;
124 else if (
isBoxFVar(box, type, name, file))
140 else if (
isBoxVSlider(box, label, cur, min, max, step))
return 1;
141 else if (
isBoxHSlider(box, label, cur, min, max, step))
return 1;
144 else if (
isBoxNumEntry(box, label, cur, min, max, step))
return 1;
154 cerr <<
"ERROR in boxComplexity : not an evaluated box [[ " << *box <<
" ]]";
Tree(* prim2)(Tree x, Tree y)
bool isBoxSeq(Tree t, Tree &x, Tree &y)
static int computeBoxComplexity(Tree box)
Compute the complexity of a box expression.
int tree2int(Tree t)
if t has a node of type int, return it otherwise error
bool isBoxSplit(Tree t, Tree &x, Tree &y)
Tree(* prim4)(Tree w, Tree x, Tree y, Tree z)
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
bool isBoxHBargraph(Tree s)
Tree BCOMPLEXITY
property Key used to store box complexity
bool isBoxRec(Tree t, Tree &x, Tree &y)
double max(double x, double y)
Tree(* prim3)(Tree x, Tree y, Tree z)
Tree(* prim5)(Tree v, Tree w, Tree x, Tree y, Tree z)
bool isBoxSymbolic(Tree t)
int boxComplexity(Tree box)
Return the complexity propety of a box expression tree.
bool isBoxPar(Tree t, Tree &x, Tree &y)
bool isBoxHSlider(Tree s)
void setProperty(Tree key, Tree value)
bool isBoxVBargraph(Tree s)
bool isBoxWaveform(Tree s)
bool isBoxCheckbox(Tree s)
#define BC
internal shortcut to simplify computeBoxComplexity code
const char * name(Symbol *sym)
Returns the name of a symbol.
bool isBoxVSlider(Tree s)
bool isBoxNumEntry(Tree s)
void * getUserData(Symbol *sym)
Returns user data.
Tree getProperty(Tree key)
bool isBoxMerge(Tree t, Tree &x, Tree &y)
double min(double x, double y)