Private and protected interface of class 'BaseEvaluator'. More...
#include <BaseEvaluator_private.h>
Public Member Functions | |
INHERITS_FROM (Object) | |
Data Fields | |
hash_ptr | cache |
hash_ptr | env |
Expr_ptr(* | resolve )(BaseEvaluator_ptr self, const Expr_ptr const_expr) |
SymbTable_ptr | st |
Related Functions | |
(Note that these are not member functions.) | |
void | base_evaluator_deinit (BaseEvaluator_ptr self) |
The BaseEvaluator class private deinitializer. | |
void | base_evaluator_init (BaseEvaluator_ptr self) |
The BaseEvaluator class private initializer. | |
Expr_ptr | base_evaluator_resolve (const BaseEvaluator_ptr self, const Expr_ptr const_expr) |
Const expr virtual resolution method. | |
BaseEvaluator_ptr | BaseEvaluator_create (void) |
The BaseEvaluator class constructor. | |
void | BaseEvaluator_destroy (BaseEvaluator_ptr self) |
The BaseEvaluator class destructor. | |
Expr_ptr | BaseEvaluator_evaluate (BaseEvaluator_ptr self, Expr_ptr const_expr) |
Evaluates given constant expression. | |
void | BaseEvaluator_set_context (BaseEvaluator_ptr self, const SymbTable_ptr st, const hash_ptr env) |
Initializes the evaluator with context information. |
Private and protected interface of class 'BaseEvaluator'.
Public interface of class 'BaseEvaluator'.
BaseEvaluator class definition derived from class Object
Definition of the public accessor for class BaseEvaluator
BaseEvaluator::INHERITS_FROM | ( | Object | ) |
void base_evaluator_deinit | ( | BaseEvaluator_ptr | self | ) | [related] |
The BaseEvaluator class private deinitializer.
The BaseEvaluator class private deinitializer
void base_evaluator_init | ( | BaseEvaluator_ptr | self | ) | [related] |
The BaseEvaluator class private initializer.
The BaseEvaluator class private initializer
Expr_ptr base_evaluator_resolve | ( | const BaseEvaluator_ptr | self, | |
const Expr_ptr | const_expr | |||
) | [related] |
Const expr virtual resolution method.
This is intended to be overridden in order to support extra types
BaseEvaluator_ptr BaseEvaluator_create | ( | void | ) | [related] |
The BaseEvaluator class constructor.
AutomaticStart
The BaseEvaluator class constructor
void BaseEvaluator_destroy | ( | BaseEvaluator_ptr | self | ) | [related] |
The BaseEvaluator class destructor.
The BaseEvaluator class destructor
Expr_ptr BaseEvaluator_evaluate | ( | BaseEvaluator_ptr | self, | |
Expr_ptr | const_expr | |||
) | [related] |
Evaluates given constant expression.
Evaluates a constant expression within context given using BaseEvaluator_set_context. Returns a constant which is the result of the evaluation of the expression. A FAILURE node is returned if result could not be computed (e.g. no assignment for an identifier could be found in the environment)
void BaseEvaluator_set_context | ( | BaseEvaluator_ptr | self, | |
const SymbTable_ptr | st, | |||
const hash_ptr | env | |||
) | [related] |
Initializes the evaluator with context information.
Initializes the evaluator with context information. This function must be called *before* invoking BaseEvaluator_evaluate in order to initialize the context of evaluation
The internal cache of the evaluator is cleared
hash_ptr BaseEvaluator::cache |
hash_ptr BaseEvaluator::env |
Expr_ptr(* BaseEvaluator::resolve)(BaseEvaluator_ptr self, const Expr_ptr const_expr) |