|
Hormiga 1.0
|
#include <operand_interface.h>


Public Member Functions | |
| virtual T_MAGNITUDE | getValue () const =0 |
| virtual T_STRING | toString () const =0 |
| virtual T_STRING | getSymbol () const =0 |
| virtual bool | isSequence () |
| virtual bool | isConstantExpresion () const =0 |
Definition at line 80 of file operand_interface.h.
| virtual T_STRING Operand::getSymbol | ( | ) | const [pure virtual] |
Return de Symbol that represent this object, it can be the name of a variable.
Implemented in FunctionInstance, Boolean, Value, Sequence, OperatorNot, OperatorNeg, OperatorFactorial, OperatorAdd, OperatorSub, OperatorMul, OperatorDiv, OperatorMod, OperatorAnd, OperatorOr, OperatorEqual, OperatorDistinct, OperatorGT, OperatorLT, OperatorGE, OperatorLE, UnaryOperator, BinaryOperator, and OperatorAsig.

| virtual T_MAGNITUDE Operand::getValue | ( | ) | const [pure virtual] |
Implemented in FunctionInstance, Boolean, Value, VarValueProxy, Sequence, OperatorNot, OperatorNeg, OperatorFactorial, OperatorAdd, OperatorSub, OperatorMul, OperatorDiv, OperatorMod, OperatorAnd, OperatorOr, OperatorEqual, OperatorDistinct, OperatorGT, OperatorLT, OperatorGE, OperatorLE, and OperatorAsig.

| virtual bool Operand::isConstantExpresion | ( | ) | const [pure virtual] |
Return TRUE if this expresion is composed only by constants. Return FALSE if this expresion contains some variable or function call.
Implemented in FunctionInstance, Boolean, VarBoolean, Value, VarValue, Sequence, UnaryOperator, and BinaryOperator.

| virtual bool Operand::isSequence | ( | ) | [inline, virtual] |
Return TRUE if this operand is a Secuence class instance, else return FALSE.
Reimplemented in Sequence.
Definition at line 95 of file operand_interface.h.

| virtual T_STRING Operand::toString | ( | ) | const [pure virtual] |
Implemented in FunctionInstance, Boolean, Value, VarValueProxy, Sequence, UnaryOperator, BinaryOperator, and OperatorAsig.
