KSeExpr  4.0.4.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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 More...
 
virtual ExprType type () const
 returns (current) type More...
 
virtual void eval (double *result)=0
 returns this variable's value by setting result More...
 
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

Definition at line 37 of file Expression.h.

◆ ExprVarRef() [2/2]

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

Definition at line 40 of file Expression.h.

◆ ~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::VectorRef, BasicExpression::ScalarRef, KSeExpr::GlobalFP, KSeExpr::VarBlockCreator::Ref, and KSeExpr::GlobalStr.

◆ 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

Member Data Documentation

◆ _type

ExprType KSeExpr::ExprVarRef::_type
private

Definition at line 59 of file Expression.h.

Referenced by setType(), and type().


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