namespace Akenti class ExpressionEvaluator


Public Methods

Expression ()
DefaultConstructor
Expression (const string& expression)
~Expression ()
string toString () const
bool evaluate (ExpressionEvaluator& evaluator) const
Use this method when it is possible for the evaluator to evaluate all non-boolean conditions
int reduce (ExpressionEvaluator& evaluator, Expression& expr) const
Use this method when it may not be possible for the evaluator to evaluate all non-boolean conditions
void visit (ExpressionVisitor& visitor) const
Use this method to visit all the non-boolean conditions
virtual ~ExpressionEvaluator ()
virtual bool evaluate (Type type, const string& leftOperand, const string& rightOperand)
virtual int reduce (Type type, const string& leftOperand, const string& rightOperand)

Documentation

Expression()
DefaultConstructor

Expression(const string& expression)

~Expression()

string toString() const

bool evaluate(ExpressionEvaluator& evaluator) const
Use this method when it is possible for the evaluator to evaluate all non-boolean conditions

int reduce(ExpressionEvaluator& evaluator, Expression& expr) const
Use this method when it may not be possible for the evaluator to evaluate all non-boolean conditions. The resulting expression is placed in the out parameter expr
Returns:
s 1 or 0 if it was possible to evaluate the whole tree. -1 otherwise and the resulting expression is placed in expr.

void visit(ExpressionVisitor& visitor) const
Use this method to visit all the non-boolean conditions

virtual ~ExpressionEvaluator()

virtual bool evaluate(Type type, const string& leftOperand, const string& rightOperand)

virtual int reduce(Type type, const string& leftOperand, const string& rightOperand)


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de