Home :: @root classes

class FactorialEvaluator

^ 
    extends UEvaluator as public

class FactorialEvaluator:public UEvaluator will work for both doubles and images
Source:
evaluate.h:454
Author:
unascribed
Version:
unknown

Contents

^ 
EntityInherited FromTypeScopeShort Description
~FactorialEvaluatordestructor publicautomatically generated
FactorialEvaluatorconstructor publicundocumented
FactorialEvaluatorconstructor publicautomatically generated
DisplayEvaluatormethod publicvoid Display:arg = double &answer display function for displaying doubles
DisplayEvaluatormethod publicvoid Display: arg= Image&answer display function for displaying a image by calling displayImage() function
displayImageEvaluatormethod publicvirtual void displayImage, arg= Image&image precond: image is a valid image object postcond: image is displayed using xv program in unix
Evaluatemethod publicinherited Evaluate arg = Node *myNode precond:myNode is pointer to plus expression tree, and current postcond: returns lhs->evaluate! or !lhs->evaluate
getFactorialmethod publicdouble getFactorial arg = double &a returns a!
getFactorialmethod publicImage getFactorial arg= Image & a returns Invert(a)
operator =operator publicautomatically generated
saveImageEvaluatormethod publicvirtual void saveImage, arg = Image &images, ofstream & output precond:image is a image object, output is a openfile object postcond: image is saved in output file
workEvaluatormethod publicvirtual void work; arg = myNode, vector<..>myMaps precond: myNode is root to expression tree myMaps are vector of maps that maps valid operators to worker by default, myMaps[0] is map of string to class objects in this file.

destructor ~FactorialEvaluator

? ^  > 
automatically generated
Source:
evaluate.h
Code:
public ~ FactorialEvaluator ( )

constructor FactorialEvaluator

? ^  < > 
undocumented
Source:
evaluate.h:458
Code:
public FactorialEvaluator ( ) : UEvaluator ( "!" )

constructor FactorialEvaluator

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

method Display

? ^  < > 
void Display:arg = double &answer display function for displaying doubles
Inherited From:
Evaluator
Source:
evaluate.h:40
Code:
public void Display ( double & answer )

method Display

? ^  < > 
void Display: arg= Image&answer display function for displaying a image by calling displayImage() function
Inherited From:
Evaluator
Source:
evaluate.h:50
Code:
public void Display ( Image & answer )

method displayImage

? ^  < > 
virtual void displayImage, arg= Image&image precond: image is a valid image object postcond: image is displayed using xv program in unix
Inherited From:
Evaluator
Source:
evaluate.h:111
Code:
public virtual void displayImage ( Image & image )

method Evaluate

? ^  < > 
inherited Evaluate arg = Node *myNode precond:myNode is pointer to plus expression tree, and current postcond: returns lhs->evaluate! or !lhs->evaluate
Source:
evaluate.h:497
Code:
public answertype Evaluate ( Node * myNode )

method getFactorial

? ^  < > 
double getFactorial arg = double &a returns a!
Source:
evaluate.h:473
Code:
public double getFactorial ( double & a )

method getFactorial

? ^  < > 
Image getFactorial arg= Image & a returns Invert(a)
Source:
evaluate.h:482
Code:
public Image getFactorial ( Image & a )

operator =

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

method saveImage

? ^  < > 
virtual void saveImage, arg = Image &images, ofstream & output precond:image is a image object, output is a openfile object postcond: image is saved in output file
Inherited From:
Evaluator
Source:
evaluate.h:86
Code:
public virtual void saveImage ( Image & image ,
ofstream & output )

method work

? ^  < > 
virtual void work; arg = myNode, vector<..>myMaps precond: myNode is root to expression tree myMaps are vector of maps that maps valid operators to worker by default, myMaps[0] is map of string to class objects in this file.

myMaps can also contain other helper maps such as printer worker maps postcond: the expression tree is evaluated and result displayed

Inherited From:
Evaluator
Source:
evaluate.h:70
Code:
public virtual void work ( Node * myNode ,
vector < map < string ,
Worker * > > & myMaps )

Created Thu Oct 10 01:13:40 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.