CNModulo Class Reference

Calculation node calculating the remainder of an integer division of two operand nodes. More...

#include <expression.h>

Inheritance diagram for CNModulo:

CalcNode List of all members.

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

CalcNodeleft
 left calculation operand
CalcNoderight
 right calculation operand

Detailed Description

Calculation node calculating the remainder of an integer division of two operand nodes.

Definition at line 229 of file expression.h.


Constructor & Destructor Documentation

CNModulo::CNModulo ( CalcNode _left,
CalcNode _right 
) [inline, explicit]

Definition at line 238 of file expression.h.

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

Definition at line 243 of file expression.h.

References left, and right.


Member Function Documentation

virtual double CNModulo::evaluate (  )  const [inline, virtual]

evaluate the complete calculation tree and return the floating point result value

Implements CalcNode.

Definition at line 249 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 254 of file expression.h.

References CalcNode::indent(), left, CalcNode::print(), and right.


Member Data Documentation

CalcNode* CNModulo::left [private]

left calculation operand

Definition at line 232 of file expression.h.

Referenced by evaluate(), print(), and ~CNModulo().

CalcNode* CNModulo::right [private]

right calculation operand

Definition at line 235 of file expression.h.

Referenced by evaluate(), print(), and ~CNModulo().


The documentation for this class was generated from the following file:
Generated on Mon Aug 20 13:34:21 2007 for Flex Bison C++ Example by  doxygen 1.5.2