| @root | classes |
class Node | ^ |
Superclass from which all other classes in nodes.h are inherited from
- Source:
- nodes.h:24
- Author:
- unascribed
- Version:
- unknown
Contents | ^ |
Entity Type Scope Short Description ~Node destructor public default destructor Node constructor public constructs a Node with children lhs and rhs Node constructor public constructs a Node with children set to NULL Node constructor public automatically generated copy method public returns a copy of the node description method public returns the description of the node evaluate method public evaluates the value of the tree and returns a dataType getArgs method public used to access arguments of multi argument functions. getLHS method public return myLHS getRHS method public returns myRHS operator = operator public automatically generated method public prints the tree by recursively calling printToString for each child and then prints that string to out printToString method public recursively prints the node to a string setChildren method public set values for the lhs and rhs pointers
destructor ~Node | ? ^ > |
default destructor
- Source:
- nodes.h:50
- Code:
public virtual ~ Node ( )
constructor Node | ? ^ < > |
constructs a Node with children lhs and rhs
- Source:
- nodes.h:34
- Code:
public Node ( Node * lhs , Node * rhs ) : myLHS ( lhs ) , myRHS ( rhs )
constructor Node | ? ^ < > |
constructs a Node with children set to NULL
- Source:
- nodes.h:45
- Code:
public Node ( ) : myLHS ( NULL ) , myRHS ( NULL )
constructor Node | ? ^ < > |
automatically generated
- Source:
- nodes.h
- Code:
public Node ( const Node & )
method copy | ? ^ < > |
returns a copy of the node
- Source:
- nodes.h:89
- Code:
public virtual Node * copy ( ) const = 0
method description | ? ^ < > |
returns the description of the node
- Source:
- nodes.h:106
- Code:
public virtual string description ( ) const = 0
method evaluate | ? ^ < > |
evaluates the value of the tree and returns a dataType
- Source:
- nodes.h:57
- Code:
public virtual dataType evaluate ( ) const = 0
method getArgs | ? ^ < > |
used to access arguments of multi argument functions.returns null if the node is not a MultiArgFunction
- Source:
- nodes.h:100
- Code:
public virtual vector < Node * > * getArgs ( )
method getLHS | ? ^ < > |
return myLHS
- Source:
- nodes.h:122
- Code:
public virtual Node * getLHS ( )
method getRHS | ? ^ < > |
returns myRHS
- Source:
- nodes.h:114
- Code:
public virtual Node * getRHS ( )
operator = | ? ^ < > |
automatically generated
- Source:
- nodes.h
- Code:
public Node & operator = ( const Node & )
method print | ? ^ < > |
prints the tree by recursively calling printToString for each child and then prints that string to out
- Source:
- nodes.h:78
- Code:
public virtual void print ( ostream & out ) const
method printToString | ? ^ < > |
recursively prints the node to a string
- Source:
- nodes.h:84
- Code:
public virtual string printToString ( ) const = 0
method setChildren | ? ^ < > |
set values for the lhs and rhs pointers
- Source:
- nodes.h:67
- Code:
public virtual void setChildren ( Node * lhs , Node * rhs )
Created Sun Oct 6 20:57:00 2002.
This documentation was generated automatically by
ccdoc v0.8 r26 2001/11/28 bin_opt_suncc_solaris-2.8.
Click here to submit a bug report or feature request.
Click here to return to the top of the page.