|
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 | isSeteable () |
| virtual bool | isConstantExpresion () const |
| Value () | |
| Value (T_MAGNITUDE v, T_STRING &symbol, Type *type=NULL) | |
| Value (Value &v) | |
| virtual | ~Value () |
Protected Attributes | |
| T_MAGNITUDE | value |
| T_STRING | symbol |
| Value::Value | ( | ) |
Constructors
Definition at line 141 of file operand.cpp.
| Value::Value | ( | T_MAGNITUDE | v, |
| T_STRING & | symbol, | ||
| Type * | type = NULL |
||
| ) |
Definition at line 146 of file operand.cpp.
| Value::Value | ( | Value & | v | ) |
| virtual T_STRING Value::getSymbol | ( | ) | const [inline, virtual] |
| T_MAGNITUDE Value::getValue | ( | ) | const [virtual] |
Implements Operand.
Reimplemented in VarValueProxy.
Definition at line 125 of file operand.cpp.

| bool Value::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 VarValue.
Definition at line 136 of file operand.cpp.
| virtual bool Value::isSeteable | ( | ) | [inline, virtual] |
| virtual bool Value::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 Value::toString | ( | ) | const [virtual] |
Implements Operand.
Reimplemented in VarValueProxy.
Definition at line 130 of file operand.cpp.


T_STRING Value::symbol [protected] |
T_MAGNITUDE Value::value [protected] |