Hormiga 1.0

Operand Class Reference

#include <operand_interface.h>

Inheritance diagram for Operand:
Collaboration diagram for Operand:

List of all members.

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

Detailed Description

Definition at line 80 of file operand_interface.h.


Member Function Documentation

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.

Here is the caller graph for this function:

virtual T_MAGNITUDE Operand::getValue ( ) const [pure virtual]
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.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

virtual T_STRING Operand::toString ( ) const [pure virtual]

Implemented in FunctionInstance, Boolean, Value, VarValueProxy, Sequence, UnaryOperator, BinaryOperator, and OperatorAsig.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: