|
Hormiga 1.0
|
#include <operand_interface.h>


Public Member Functions | |
| virtual T_STRING | getSymbol () const =0 |
| virtual T_STRING | toString () const |
| virtual bool | isConstantExpresion () const |
| BinaryOperator (Operand *op1, Operand *op2) | |
| virtual | ~BinaryOperator () |
Protected Attributes | |
| Operand * | op1 |
| Operand * | op2 |
Definition at line 124 of file operand_interface.h.
Definition at line 431 of file operand.cpp.
| BinaryOperator::~BinaryOperator | ( | ) | [virtual] |
| virtual T_STRING BinaryOperator::getSymbol | ( | ) | const [pure virtual] |
Return de Symbol that represent this object, it can be the name of a variable.
Implements Operand.
Implemented in OperatorAdd, OperatorSub, OperatorMul, OperatorDiv, OperatorMod, OperatorAnd, OperatorOr, OperatorEqual, OperatorDistinct, OperatorGT, OperatorLT, OperatorGE, OperatorLE, and OperatorAsig.

| bool BinaryOperator::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.
Definition at line 425 of file operand.cpp.

| T_STRING BinaryOperator::toString | ( | ) | const [virtual] |
Implements Operand.
Reimplemented in OperatorAsig.
Definition at line 417 of file operand.cpp.


Operand* BinaryOperator::op1 [protected] |
Definition at line 133 of file operand_interface.h.
Operand* BinaryOperator::op2 [protected] |
Definition at line 134 of file operand_interface.h.