|
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 |
| UnaryOperator (Operand *op) | |
| virtual | ~UnaryOperator () |
Protected Attributes | |
| Operand * | op1 |
Definition at line 112 of file operand_interface.h.
| UnaryOperator::UnaryOperator | ( | Operand * | op | ) |
Definition at line 348 of file operand.cpp.
| UnaryOperator::~UnaryOperator | ( | ) | [virtual] |
| virtual T_STRING UnaryOperator::getSymbol | ( | ) | const [pure virtual] |
Return de Symbol that represent this object, it can be the name of a variable.
Implements Operand.
Implemented in OperatorNot, OperatorNeg, and OperatorFactorial.

| bool UnaryOperator::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 343 of file operand.cpp.

| T_STRING UnaryOperator::toString | ( | ) | const [virtual] |
Implements Operand.
Definition at line 336 of file operand.cpp.

Operand* UnaryOperator::op1 [protected] |
Definition at line 121 of file operand_interface.h.