|
Hormiga 1.0
|
#include <operand.h>


Public Member Functions | |
| virtual T_MAGNITUDE | getValue () const |
| virtual T_STRING | toString () const |
| virtual bool | isShareable () |
| virtual T_STRING | getSymbol () const |
| virtual bool | isConstantExpresion () const |
| Boolean () | |
| Boolean (T_MAGNITUDE v, T_STRING &symbol) | |
| Boolean (Boolean &v) | |
| virtual | ~Boolean () |
Protected Attributes | |
| bool | value |
| T_STRING | symbol |
| Boolean::Boolean | ( | ) |
Constructors
Definition at line 79 of file operand.cpp.
| Boolean::Boolean | ( | T_MAGNITUDE | v, |
| T_STRING & | symbol | ||
| ) |
Definition at line 90 of file operand.cpp.
| Boolean::Boolean | ( | Boolean & | v | ) |
| virtual T_STRING Boolean::getSymbol | ( | ) | const [inline, virtual] |
| T_MAGNITUDE Boolean::getValue | ( | ) | const [virtual] |
Implements Operand.
Definition at line 63 of file operand.cpp.

| bool Boolean::isConstantExpresion | ( | ) | const [virtual] |
Return TRUE if this expresion is composed only by constants. Return FALSE if this expresion contains some variable or function call.
Implements Operand.
Reimplemented in VarBoolean.
Definition at line 74 of file operand.cpp.
| virtual bool Boolean::isShareable | ( | ) | [inline, virtual] |
This method tell if this object is sharable (exists in the Symbol Table) If not, this object should be 'deleted' by it's parent. If this object is 'shareable' then the Symbol Table will delete it. By DEFAULT it will return FALSE. Overwrite this if you need to return TRUE ( as in class Boolean and Value )
Reimplemented from Shareable.
| T_STRING Boolean::toString | ( | ) | const [virtual] |
Implements Operand.
Definition at line 68 of file operand.cpp.

T_STRING Boolean::symbol [protected] |
bool Boolean::value [protected] |