Abstract base class providing numerical values from some context ID for the evaluation of function trees.
More...
#include </home/werner/origo/vish/ocean/parzival/Evaluator.hpp>
List of all members.
Public Types
-
typedef int id_t
- Type used to identify a variable.
- enum ProblemType { NOPROBLEM,
COULD_NOT_GET_DATA_FOR_VARIABLE
}
Public Member Functions
-
Evaluator (size_t HowManyArrayElementsToCreate)
- Constructor, details to be specified in subclass, but provide number of elements here for array operations.
-
template<class Value > MemCore::RefPtr
< MemCore::TypedChunk< Value > > getArray (id_t) const
-
virtual const bivector3 & getBivector (id_t) const =0
-
virtual MemCore::RefPtr
< MemCore::TypedChunk
< bivector3 > > getBivectorArray (id_t) const =0
-
virtual const point3 & getPoint (id_t) const =0
-
virtual MemCore::RefPtr
< MemCore::TypedChunk< point3 > > getPointArray (id_t) const =0
-
virtual const double & getScalar (id_t) const =0
-
virtual MemCore::RefPtr
< MemCore::TypedChunk< double > > getScalarArray (id_t) const =0
-
template<class Value > const Value & getValue (id_t id) const
-
virtual const tvector3 & getVector (id_t) const =0
-
virtual MemCore::RefPtr
< MemCore::TypedChunk
< tvector3 > > getVectorArray (id_t) const =0
- 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.
Static Public Member Functions
-
static bool valid (id_t value)
Detailed Description
Abstract base class providing numerical values from some context ID for the evaluation of function trees.
Member Function Documentation
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.
The documentation for this class was generated from the following files:
- ocean/parzival/Evaluator.hpp
- ocean/parzival/Evaluator.cpp