7 #ifndef __evaluator_EvaluatorI_h__ 8 #define __evaluator_EvaluatorI_h__ 15 class Variables :
public Counted
18 t_stdvector< Record > m_varray;
20 unsigned int size(
void) {
return m_varray.size(); }
21 Record &operator [] (
unsigned int a_i)
22 {
return m_varray[a_i]; }
23 void resize(
unsigned int a_size)
24 { m_varray.resize(a_size); }
26 void copy(Variables &a_other)
28 m_varray.resize(a_other.size());
29 for(
unsigned int i = 0; i < size(); i++)
31 (*this)[i] = a_other[i];
36 typedef Variables t_variables;
47 virtual void compile(
const t_stdstring &a_buffer) = 0;
48 virtual void evaluate(
void) = 0;
50 virtual void addFunction(
const t_stdstring &a_function,
51 const t_stdstring &a_component) = 0;
52 virtual sp<FunctionI> createFunction(
const t_stdstring &a_function) = 0;
55 virtual unsigned int index(
const t_stdstring &a_name) = 0;
56 virtual const Record &variable(
unsigned int a_index) = 0;
58 virtual void assignVariable(
unsigned int a_index,
61 virtual t_variables &variables(
void) = 0;
63 virtual Record create(
const t_stdstring &a_name,
kernel
Definition: namespace.dox:3
Functional Mini Language evaluator.
Definition: EvaluatorI.h:41
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Base for all interfacable components.
Definition: Component.h:20
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192