MathTypeLibrary(libmath++)
0.0.3
|
#include <nodes.h>
Public Member Functions | |
TNode< T > * | node () const |
returns the child node for that unary operator node. | |
virtual TNode< T > * | right () const |
returns the child node (wrapper to the more declarative node() method) | |
virtual bool | equals (const TNode< T > *ANode) const |
returns true, if given node equals to this one | |
![]() | |
TNode< T > * | parent () const |
returns the parent node (returns 0 if this node is the root node) | |
virtual | ~TNode () |
each virtual class needs a virtual destructor (this one does nothing) | |
TNodeType | nodeType () const |
returns the type of this node | |
short | priority () const |
returns the node priority | |
virtual TNode< T > * | left () const |
returns the left child node (returns 0 if this node doesn't support one) | |
virtual void | accept (TNodeVisitor< T > &)=0 |
calls the visit method in TNodeVisitor<> | |
virtual TNode< T > * | clone () const =0 |
clones that node | |
iterator | begin () |
iterator access to the first value node in this operator level | |
iterator | end () |
iterator access to the end | |
Protected Member Functions | |
TUnaryNodeOp (typename TUnaryNodeOp< T >::TNodeType AType, short APriority, TNode< T > *ANode) | |
creates an unary operator node of type AType. | |
![]() | |
TNode (TNodeType ANodeType, short APriority, TNode< T > *AParentNode=0) | |
initializes this node for given node type. | |
TNode (const TNode< T > &n) | |
void | parent (TNode< T > *AParent) |
initializes the parent node with the given one | |
Additional Inherited Members | |
![]() | |
enum | TNodeType |
typedef TNodeIterator< T > | iterator |
typedef const TNodeIterator< T > | const_iterator |
typedef TOperandIter< TNode< T > > | operand_iterator |
typedef TOperandIter< const TNode< T > > | const_operand_iterator |
TUnaryNodeOp<T> represents the base class for any unary operation node in the expression tree.