CondExpression Class Reference

Represents base class of all conditional expressions. More...

#include <condexpression.h>

Inheritance diagram for CondExpression:

Inheritance graph
[legend]
Collaboration diagram for CondExpression:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CondExpression (EXP_TYPE _type)
 Constructor.
virtual ~CondExpression ()
virtual bool evalCond (OutputStream &eos, Environment *env, unsigned modus)=0
 Evaluates the corresponding CondExpression.


Detailed Description

Represents base class of all conditional expressions.

Represents base class of all conditional expressions.

Author:
Michael Schmidt

Gunnar Jehl

Version:
2.1
License:
Software License Agreement (BSD License)

Definition at line 49 of file condexpression.h.


Constructor & Destructor Documentation

CondExpression::CondExpression ( EXP_TYPE  _type  ) 

Constructor.

Constructor - creating object for an EXP_TYPE.

Parameters:
[in] _type EXP_TYPE.

Definition at line 37 of file condexpression.cpp.

CondExpression::~CondExpression (  )  [virtual]

Destructor.

Definition at line 40 of file condexpression.cpp.


Member Function Documentation

bool CondExpression::evalCond ( OutputStream eos,
Environment env,
unsigned  modus 
) [pure virtual]

Evaluates the corresponding CondExpression.

Evaluates the corresponding CondExpression.

Parameters:
[in] eos Pointer to a OutputStream object.
[in] env Pointer to a Environment object.
[in] modus Evaluation modus.
Return values:
bool true if the corresponding CondExpression is true, false otherwise.
Exceptions:
RuntimeException If illegal evaluation mode (argument: unsigned modus).

Implemented in AndCondExpression, CondOperandExpression, EmptyCondExpression, ExistsCondExpression, FalseCondExpression, NotCondExpression, OrCondExpression, TrueCondExpression, and VarstepCondExpression.

Referenced by IfExpression::eval(), OrCondExpression::evalCond(), NotCondExpression::evalCond(), and AndCondExpression::evalCond().


Generated on Sun May 24 20:20:21 2009 for G(arbage) C(ollected) X(Query) Engine by  doxygen 1.5.9