#include <expression.h>
Public Member Functions | |
CNModulo (CalcNode *_left, CalcNode *_right) | |
virtual | ~CNModulo () |
virtual double | evaluate () const |
evaluate the complete calculation tree and return the floating point result value | |
virtual void | print (std::ostream &os, unsigned int depth) const |
output the calculation tree to the given stream. | |
Private Attributes | |
CalcNode * | left |
left calculation operand | |
CalcNode * | right |
right calculation operand |
Definition at line 230 of file expression.h.
Definition at line 239 of file expression.h.
virtual CNModulo::~CNModulo | ( | ) | [inline, virtual] |
virtual double CNModulo::evaluate | ( | ) | const [inline, virtual] |
evaluate the complete calculation tree and return the floating point result value
Implements CalcNode.
Definition at line 250 of file expression.h.
References CalcNode::evaluate(), left, and right.
virtual void CNModulo::print | ( | std::ostream & | os, | |
unsigned int | depth | |||
) | const [inline, virtual] |
output the calculation tree to the given stream.
tries to format the output to make tree levels visible.
Implements CalcNode.
Definition at line 255 of file expression.h.
References CalcNode::indent(), left, CalcNode::print(), and right.
CalcNode* CNModulo::left [private] |
left calculation operand
Definition at line 233 of file expression.h.
Referenced by evaluate(), print(), and ~CNModulo().
CalcNode* CNModulo::right [private] |
right calculation operand
Definition at line 236 of file expression.h.
Referenced by evaluate(), print(), and ~CNModulo().