Schnek
schnek::Expression< vtype > Class Template Referenceabstract

#include <expression.hpp>

Inheritance diagram for schnek::Expression< vtype >:

Public Types

typedef boost::shared_ptr< ExpressionpExpression
 A pointer to an Expression.
 
typedef vtype ValueType
 

Public Member Functions

virtual vtype eval ()=0
 The virtual method that causes the expression to evaluate.
 
virtual bool isConstant ()=0
 Returns whether the expression can be evaluated, are all the references also constant.
 
vtype operator() ()
 The () operator allows expressions to be used as function objects.
 
virtual DependencyList getDependencies ()
 

Detailed Description

template<typename vtype>
class schnek::Expression< vtype >

A base type for real time evaluation of mathematical expressions.

Expressions are most commonly constructed from parsing input decks, but might be used elsewhere as function objects.

The expression is templated with the return type. To allow expressions with variables of different type, type promotion operators must be inserted.


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