|
KSeExpr 4.0.4.0
|
abstract class for implementing variable references More...
#include <Expression.h>
Public Member Functions | |
| ExprVarRef (const ExprType &type) | |
| virtual | ~ExprVarRef () |
| virtual void | setType (const ExprType &type) |
| sets (current) type to given type | |
| virtual ExprType | type () const |
| returns (current) type | |
| virtual void | eval (double *result)=0 |
| returns this variable's value by setting result | |
| virtual void | eval (const char **resultStr)=0 |
Private Member Functions | |
| ExprVarRef () | |
Private Attributes | |
| ExprType | _type |
abstract class for implementing variable references
Definition at line 36 of file Expression.h.
|
inlineprivate |
Definition at line 37 of file Expression.h.
References _type.
Referenced by KSeExpr::GlobalVal::GlobalVal(), KSeExpr::VarBlockCreator::Ref::Ref(), BasicExpression::ScalarRef::ScalarRef(), and BasicExpression::VectorRef::VectorRef().
|
inline |
Definition at line 40 of file Expression.h.
|
inlinevirtual |
Definition at line 42 of file Expression.h.
|
pure virtual |
|
pure virtual |
returns this variable's value by setting result
Implemented in BasicExpression::ScalarRef, BasicExpression::VectorRef, KSeExpr::GlobalFP, KSeExpr::GlobalStr, and KSeExpr::VarBlockCreator::Ref.
|
inlinevirtual |
sets (current) type to given type
Definition at line 45 of file Expression.h.
|
inlinevirtual |
returns (current) type
Definition at line 50 of file Expression.h.
References _type.
Referenced by KSeExpr::GlobalFP::eval(), ExprVarRef(), KSeExpr::GlobalFP::isVec(), KSeExpr::VarBlockCreator::Ref::Ref(), and setType().
|
private |
Definition at line 59 of file Expression.h.
Referenced by ExprVarRef(), ExprVarRef(), setType(), and type().