The Vish Visualization Shell 0.3
Vish
Public Types | Public Member Functions | List of all members
Eagle::Evaluator Class Referenceabstract

Abstract base class providing numerical values from some context ID for the evaluation of function trees. More...

#include <ocean/parzival/Evaluator.hpp>

Inheritance diagram for Eagle::Evaluator:
Eagle::EvaluationContext

Public Types

typedef int id_t
 Type used to identify a variable.
 

Public Member Functions

 Evaluator (size_t HowManyArrayElementsToCreate)
 Constructor, details to be specified in subclass, but provide number of elements here for array operations.
 
virtual void Problem (ProblemType what, const char *text, const type_info &t, id_t) const
 Virtual function for reporting problems during evaluation.
 
size_t size () const
 For array operations, return the number of elements.
 
virtual ~Evaluator ()=0
 Destructor.
 

Detailed Description

Abstract base class providing numerical values from some context ID for the evaluation of function trees.

Member Function Documentation

◆ Problem()

void Eagle::Evaluator::Problem ( ProblemType  what,
const char *  text,
const type_info &  t,
id_t   
) const
virtual

Virtual function for reporting problems during evaluation.

A child class may throw an exception here if it desires so, or chose to print an warning message and ignore the issue. The evaluation code will continue as best as it can.