Parsed Math expression.
More...
List of all members.
Detailed Description
Parsed Math expression.
A MathExpression can be queried about its variables with getNrVariables(), and each variable's name can be queried with getVariableStr( int ).
When a calculations should be done, all variables must be set with setVariable( int, float ). Then, the calculation can be done with getValue().
Member Enumeration Documentation
- Enumerator:
| Variable |
|
| Constant |
|
| Recursive |
|
Constructor & Destructor Documentation
| virtual MathExpression::~MathExpression |
( |
|
) |
[virtual] |
| MathExpression::MathExpression |
( |
int |
nrinputs |
) |
[protected] |
Member Function Documentation
| void MathExpression::addIfOK |
( |
const char * |
|
) |
[protected] |
| virtual MathExpression* MathExpression::clone |
( |
|
) |
const [pure virtual] |
| void MathExpression::copyInput |
( |
MathExpression * |
target |
) |
const [protected] |
| int MathExpression::firstOccurVarName |
( |
const char * |
|
) |
const |
| virtual const char* MathExpression::fullVariableExpression |
( |
int |
|
) |
const [virtual] |
| int MathExpression::getConstIdx |
( |
int |
varidx |
) |
const |
| VarType MathExpression::getType |
( |
int |
varidx |
) |
const |
| virtual float MathExpression::getValue |
( |
|
) |
const [pure virtual] |
| int MathExpression::indexOfUnVarName |
( |
const char * |
nm |
) |
[inline] |
| bool MathExpression::isRecursive |
( |
|
) |
const [inline] |
| int MathExpression::nrInputs |
( |
|
) |
const [inline, protected] |
| int MathExpression::nrUniqueVarNames |
( |
|
) |
const [inline] |
| virtual int MathExpression::nrVariables |
( |
|
) |
const [virtual] |
| virtual void MathExpression::setVariableValue |
( |
int |
, |
|
|
float |
| |
|
) |
| | [virtual] |
| const char* MathExpression::uniqueVarName |
( |
int |
idx |
) |
const [inline] |
Friends And Related Function Documentation
Member Data Documentation