#include <Variable.h>

Public Member Functions | |
| DynamicVariable (string cat_, string name_, string title_="", bool is_local=false, bool is_builtin=true, bool is_active=true) | |
| DynamicVariable (const DynamicVariable *variable) | |
| ExpressionItem * | copy () const =0 |
| void | set (const ExpressionItem *item) |
| const MathStructure & | get () |
| void | set (const MathStructure &o) |
| void | set (string expression_) |
| int | calculatedPrecision () const |
| virtual bool | representsPositive (bool=false) |
| virtual bool | representsNegative (bool=false) |
| virtual bool | representsNonNegative (bool=false) |
| virtual bool | representsNonPositive (bool=false) |
| virtual bool | representsInteger (bool=false) |
| virtual bool | representsNumber (bool=false) |
| virtual bool | representsRational (bool=false) |
| virtual bool | representsReal (bool=false) |
| virtual bool | representsComplex (bool=false) |
| virtual bool | representsNonZero (bool=false) |
| virtual bool | representsEven (bool=false) |
| virtual bool | representsOdd (bool=false) |
| virtual bool | representsUndefined (bool=false, bool=false, bool=false) |
| virtual bool | representsBoolean () |
| virtual bool | representsNonMatrix () |
Protected Member Functions | |
| virtual void | calculate () const =0 |
| const MathStructure& DynamicVariable::get | ( | ) | [virtual] |
Returns the value of the variable. If no value is set or parsed and an expression is set, the expression is parsed and resulting value returned.
Reimplemented from KnownVariable.
| void DynamicVariable::set | ( | const MathStructure & | o | ) | [virtual] |
Sets the value of the variable. If expression is set, it is cleared.
| o | Value. |
Reimplemented from KnownVariable.
| void DynamicVariable::set | ( | string | expression_ | ) | [virtual] |
Sets the text string expression of the variable. The value is cleared.
| expression_ | Expression. |
Reimplemented from KnownVariable.
| int DynamicVariable::calculatedPrecision | ( | ) | const |
Returns the precision of the calculated value.
| virtual bool DynamicVariable::representsPositive | ( | bool | = false |
) | [inline, virtual] |
Returns if the variable represents a positive value.
Reimplemented from KnownVariable.
1.5.5