Hormiga 1.0

Boolean Class Reference

#include <operand.h>

Inheritance diagram for Boolean:
Collaboration diagram for Boolean:

List of all members.

Public Member Functions

virtual T_MAGNITUDE getValue () const
virtual T_STRING toString () const
virtual bool isShareable ()
virtual T_STRING getSymbol () const
virtual bool isConstantExpresion () const
 Boolean ()
 Boolean (T_MAGNITUDE v, T_STRING &symbol)
 Boolean (Boolean &v)
virtual ~Boolean ()

Protected Attributes

bool value
T_STRING symbol

Detailed Description

Definition at line 62 of file operand.h.


Constructor & Destructor Documentation

Boolean::Boolean ( )

Constructors

Definition at line 79 of file operand.cpp.

Boolean::Boolean ( T_MAGNITUDE  v,
T_STRING &  symbol 
)

Definition at line 90 of file operand.cpp.

Boolean::Boolean ( Boolean v)

Definition at line 84 of file operand.cpp.

Here is the call graph for this function:

virtual Boolean::~Boolean ( ) [inline, virtual]

Definition at line 74 of file operand.h.


Member Function Documentation

virtual T_STRING Boolean::getSymbol ( ) const [inline, virtual]

Return de Symbol that represent this object, it can be the name of a variable.

Implements Operand.

Definition at line 68 of file operand.h.

Here is the caller graph for this function:

T_MAGNITUDE Boolean::getValue ( ) const [virtual]

Boolean

Implements Operand.

Definition at line 63 of file operand.cpp.

Here is the caller graph for this function:

bool Boolean::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 VarBoolean.

Definition at line 74 of file operand.cpp.

virtual bool Boolean::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.

Definition at line 67 of file operand.h.

T_STRING Boolean::toString ( ) const [virtual]

Implements Operand.

Definition at line 68 of file operand.cpp.

Here is the call graph for this function:


Member Data Documentation

T_STRING Boolean::symbol [protected]

Definition at line 78 of file operand.h.

bool Boolean::value [protected]

Definition at line 77 of file operand.h.


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