@root classes

class UnaryOperator

^ 
    extends Node as public

this is the generic unary operator node (op num) or (num op)
Source:
unaryop.h:14
Author:
unascribed
Version:
unknown

Contents

^ 
EntityInherited FromTypeScopeShort Description
~UnaryOperatordestructor publicundocumented
UnaryOperatorconstructor publicundocumented
UnaryOperatorconstructor publicautomatically generated
copyNodemethod public returns a copy of the entire tree recursively
descriptionNodemethod publicundocumented
evaluateNodemethod public returns the value stored up in the tree by expanding operators
GetChildmethod publicundocumented
GetKeyNodemethod publicundocumented
GetLeftChildNodemethod publicundocumented
GetRightChildNodemethod publicundocumented
operator =operator publicautomatically generated
PrecedenceNodemethod public returns a value correpsonding to the precedence of the operator, operand, or parentheses (higher value being higher precedence) Operands are the lowest, followed by normal order of operations rules
printNodemethod public prints the tree by recursively expanding children (if any)
SetChildmethod publicundocumented
SetLeftChildNodemethod public may change the child of an operator after creation.
SetRightChildNodemethod public may change the child of an operator after creation.

destructor ~UnaryOperator

? ^  > 
undocumented
Source:
unaryop.h:18
Code:
public virtual ~ UnaryOperator ( )

constructor UnaryOperator

? ^  < > 
undocumented
Source:
unaryop.h:16
Code:
public UnaryOperator ( Node * rhs )

constructor UnaryOperator

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

method copy

? ^  < > 
returns a copy of the entire tree recursively
Inherited From:
Node
Source:
nodes.h:39
Code:
public virtual Node * copy ( ) = 0

method description

? ^  < > 
undocumented
Inherited From:
Node
Source:
nodes.h:41
Code:
public virtual string description ( ) const = 0

method evaluate

? ^  < > 
returns the value stored up in the tree by expanding operators
Inherited From:
Node
Source:
nodes.h:31
Code:
public virtual myType evaluate ( ) const = 0

method GetChild

? ^  < > 
undocumented
Source:
unaryop.h:22
Code:
public virtual Node * GetChild ( )

method GetKey

? ^  < > 
undocumented
Inherited From:
Node
Source:
nodes.h:83
Code:
public virtual string GetKey ( ) const

method GetLeftChild

? ^  < > 
undocumented
Inherited From:
Node
Source:
nodes.h:75
Code:
public virtual Node * GetLeftChild ( )

method GetRightChild

? ^  < > 
undocumented
Inherited From:
Node
Source:
nodes.h:71
Code:
public virtual Node * GetRightChild ( )

operator =

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

method Precedence

? ^  < > 
returns a value correpsonding to the precedence of the operator, operand, or parentheses (higher value being higher precedence) Operands are the lowest, followed by normal order of operations rules
Inherited From:
Node
Source:
nodes.h:51
Code:
public virtual int Precedence ( ) const

method print

? ^  < > 
prints the tree by recursively expanding children (if any)
Inherited From:
Node
Source:
nodes.h:35
Code:
public virtual void print ( ostream & out ) const = 0

method SetChild

? ^  < > 
undocumented
Source:
unaryop.h:20
Code:
public virtual void SetChild ( Node * r )

method SetLeftChild

? ^  < > 
may change the child of an operator after creation.

It will then point to Node l and evaluate itself based on that

Inherited From:
Node
Source:
nodes.h:61
Code:
public virtual void SetLeftChild ( Node * l )

method SetRightChild

? ^  < > 
may change the child of an operator after creation.

It will then point to Node r and evaluate itself based on that

Inherited From:
Node
Source:
nodes.h:66
Code:
public virtual void SetRightChild ( Node * l )

Created Mon Oct 7 11:43:06 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.