|
Schnek
|
#include <expression.hpp>

Public Types | |
| typedef std::shared_ptr< Expression > | pExpression |
| 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 () |
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.