|
SeExpr
|
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 45 of file Expression.h.
|
inlineprivate |
Definition at line 46 of file Expression.h.
References _type.
Referenced by SeExpr2::GlobalVal::GlobalVal(), SeExpr2::VarBlockCreator::Ref::Ref(), BasicExpression::ScalarRef::ScalarRef(), and BasicExpression::VectorRef::VectorRef().
|
inline |
Definition at line 49 of file Expression.h.
|
inlinevirtual |
Definition at line 51 of file Expression.h.
|
pure virtual |
|
pure virtual |
returns this variable's value by setting result
Implemented in BasicExpression::ScalarRef, BasicExpression::VectorRef, SeExpr2::GlobalFP, SeExpr2::GlobalStr, and SeExpr2::VarBlockCreator::Ref.
|
inlinevirtual |
sets (current) type to given type
Definition at line 54 of file Expression.h.
|
inlinevirtual |
returns (current) type
Definition at line 59 of file Expression.h.
References _type.
Referenced by SeExpr2::GlobalFP::eval(), ExprVarRef(), SeExpr2::GlobalFP::isVec(), SeExpr2::VarBlockCreator::Ref::Ref(), and setType().
|
private |
Definition at line 68 of file Expression.h.
Referenced by ExprVarRef(), ExprVarRef(), setType(), and type().