@root classes

class Plus

^ 
    extends BinaryOperator as public

This represents the contents of one node + the contents of another node
Source:
nodesv2.h:855
Author:
unascribed
Version:
unknown

Contents

^ 
EntityInherited FromTypeScopeShort Description
~Plusdestructor publicautomatically generated
Plusconstructor publicundocumented
Plusconstructor publicautomatically generated
copymethod public returns a pointer to a new copy of itself
descriptionmethod public return the description of the Node
evaluatemethod public evaluate lhs + rhs
getArgsNodemethod public used to access arguments of multi argument functions.
getLHSNodemethod public return myLHS
getRHSNodemethod public returns myRHS
operator =operator publicautomatically generated
printNodemethod public prints the tree by recursively calling printToString for each child and then prints that string to out
printToStringBinaryOperatormethod public return a string of the operator along with its rhs and lhs
setChildrenNodemethod public set values for the lhs and rhs pointers

destructor ~Plus

? ^  > 
automatically generated
Source:
nodesv2.h
Code:
public ~ Plus ( )

constructor Plus

? ^  < > 
undocumented
Source:
nodesv2.h:860
Code:
public Plus ( Node * lhs ,
Node * rhs ) : BinaryOperator ( lhs ,
rhs )

constructor Plus

? ^  < > 
automatically generated
Source:
nodesv2.h
Code:
public Plus ( const Plus & )

method copy

? ^  < > 
returns a pointer to a new copy of itself
Source:
nodesv2.h:877
Code:
public virtual Node * copy ( ) const

method description

? ^  < > 
return the description of the Node
Source:
nodesv2.h:885
Code:
public virtual string description ( ) const

method evaluate

? ^  < > 
evaluate lhs + rhs
Source:
nodesv2.h:868
Code:
public virtual float evaluate ( ) const

method getArgs

? ^  < > 
used to access arguments of multi argument functions.

returns null if the node is not a MultiArgFunction

Inherited From:
Node
Source:
nodesv2.h:96
Code:
public virtual vector < Node * > * getArgs ( )

method getLHS

? ^  < > 
return myLHS
Inherited From:
Node
Source:
nodesv2.h:118
Code:
public virtual Node * getLHS ( )

method getRHS

? ^  < > 
returns myRHS
Inherited From:
Node
Source:
nodesv2.h:110
Code:
public virtual Node * getRHS ( )

operator =

? ^  < > 
automatically generated
Source:
nodesv2.h
Code:
public Plus & operator = ( const Plus & )

method print

? ^  < > 
prints the tree by recursively calling printToString for each child and then prints that string to out
Inherited From:
Node
Source:
nodesv2.h:74
Code:
public virtual void print ( ostream & out ) const

method printToString

? ^  < > 
return a string of the operator along with its rhs and lhs
Inherited From:
BinaryOperator
Source:
nodesv2.h:843
Code:
public virtual string printToString ( ) const

method setChildren

? ^  < > 
set values for the lhs and rhs pointers
Inherited From:
Node
Source:
nodesv2.h:63
Code:
public virtual void setChildren ( Node * lhs ,
Node * rhs )

Created Sun Sep 29 16:16:44 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.