Schnek
schnek::ReferencedValue< vtype > Class Template Reference

#include <expression.hpp>

Inheritance diagram for schnek::ReferencedValue< vtype >:
Collaboration diagram for schnek::ReferencedValue< vtype >:

Public Member Functions

 ReferencedValue (const pVariable &var_)
 Construct with a value.
 
vtype eval ()
 Return the modified value.
 
bool isConstant ()
 Constancy depends on the constancy of the variable.
 
DependencyList getDependencies ()
 returns a list with the variable's id
 
- Public Member Functions inherited from schnek::Expression< vtype >
vtype operator() ()
 The () operator allows expressions to be used as function objects.
 

Additional Inherited Members

- Public Types inherited from schnek::Expression< vtype >
typedef std::shared_ptr< ExpressionpExpression
 A pointer to an Expression.
 
typedef vtype ValueType
 

Detailed Description

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

A special type of expresion that holds a reference to a variable.

This is used by the parser when parsing variables


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