Hormiga 1.0

BinaryOperator Class Reference

#include <operand_interface.h>

Inheritance diagram for BinaryOperator:
Collaboration diagram for BinaryOperator:

List of all members.

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

Operandop1
Operandop2

Detailed Description

Definition at line 124 of file operand_interface.h.


Constructor & Destructor Documentation

BinaryOperator::BinaryOperator ( Operand op1,
Operand op2 
)

Definition at line 431 of file operand.cpp.

BinaryOperator::~BinaryOperator ( ) [virtual]

Definition at line 437 of file operand.cpp.

Here is the call graph for this function:


Member Function Documentation

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.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

T_STRING BinaryOperator::toString ( ) const [virtual]

BinaryOperator

Implements Operand.

Reimplemented in OperatorAsig.

Definition at line 417 of file operand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 133 of file operand_interface.h.

Definition at line 134 of file operand_interface.h.


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