Home :: @root classes

class Evaluator

^ 
    extends Worker as public

class Evaluator:public Worker this class and subclasses are workers for Arithmetica and Imagimetica it contains same name functions that takes care of both applications for typedef purposes, this exact same file are copied in ievaluate.h with a different typedef so that recompiling is not necessary for runtime options of choosing which application to run.
Source:
evaluate.h:27
Author:
unascribed
Version:
unknown

Contents

^ 
EntityInherited FromTypeScopeShort Description
~Evaluatordestructor publicautomatically generated
Evaluatorconstructor publicundocumented
Evaluatorconstructor publicautomatically generated
answertypetypedef publicundocumented
Displaymethod publicvoid Display:arg = double &answer display function for displaying doubles
Displaymethod publicvoid Display: arg= Image&answer display function for displaying a image by calling displayImage() function
displayImagemethod publicvirtual void displayImage, arg= Image&image precond: image is a valid image object postcond: image is displayed using xv program in unix
Evaluatemethod publicundocumented
operator =operator publicautomatically generated
saveImagemethod 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
workmethod 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 ~Evaluator

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

constructor Evaluator

? ^  < > 
undocumented
Source:
evaluate.h:31
Code:
public Evaluator ( )

constructor Evaluator

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

typedef answertype

? ^  < > 
undocumented
Source:
evaluate.h:29
Code:
public typedef double answertype

method Display

? ^  < > 
void Display:arg = double &answer display function for displaying doubles
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
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
Source:
evaluate.h:111
Code:
public virtual void displayImage ( Image & image )

method Evaluate

? ^  < > 
undocumented
Source:
evaluate.h:75
Code:
public virtual answertype Evaluate ( Node * myNode )

operator =

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

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
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

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

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