KSeExpr 4.0.4.0
KSeExpr::ExprVarRef Class Referenceabstract

abstract class for implementing variable references More...

#include <Expression.h>

Inheritance diagram for KSeExpr::ExprVarRef:
BasicExpression::ScalarRef BasicExpression::VectorRef KSeExpr::GlobalVal KSeExpr::VarBlockCreator::Ref KSeExpr::GlobalFP KSeExpr::GlobalStr

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

Detailed Description

abstract class for implementing variable references

Definition at line 36 of file Expression.h.

Constructor & Destructor Documentation

◆ ExprVarRef() [1/2]

KSeExpr::ExprVarRef::ExprVarRef ( )
inlineprivate

◆ ExprVarRef() [2/2]

KSeExpr::ExprVarRef::ExprVarRef ( const ExprType & type)
inline

Definition at line 40 of file Expression.h.

References _type, and type().

◆ ~ExprVarRef()

virtual KSeExpr::ExprVarRef::~ExprVarRef ( )
inlinevirtual

Definition at line 42 of file Expression.h.

Member Function Documentation

◆ eval() [1/2]

virtual void KSeExpr::ExprVarRef::eval ( const char ** resultStr)
pure virtual

◆ eval() [2/2]

virtual void KSeExpr::ExprVarRef::eval ( double * result)
pure virtual

returns this variable's value by setting result

Implemented in BasicExpression::ScalarRef, BasicExpression::VectorRef, KSeExpr::GlobalFP, KSeExpr::GlobalStr, and KSeExpr::VarBlockCreator::Ref.

◆ setType()

virtual void KSeExpr::ExprVarRef::setType ( const ExprType & type)
inlinevirtual

sets (current) type to given type

Definition at line 45 of file Expression.h.

References _type, and type().

◆ type()

virtual ExprType KSeExpr::ExprVarRef::type ( ) const
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().

Member Data Documentation

◆ _type

ExprType KSeExpr::ExprVarRef::_type
private

Definition at line 59 of file Expression.h.

Referenced by ExprVarRef(), ExprVarRef(), setType(), and type().


The documentation for this class was generated from the following file: