Schnek
schnek::Value< vtype > Class Template Reference

#include <expression.hpp>

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

Public Types

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

Public Member Functions

 Value (vtype val_)
 Construct with a value.
 
vtype eval ()
 Return the stored value.
 
bool isConstant ()
 A literal is a constant.
 
vtype & getReference ()
 Return a reference to the value.
 
- Public Member Functions inherited from schnek::Expression< vtype >
vtype operator() ()
 The () operator allows expressions to be used as function objects.
 
virtual DependencyList getDependencies ()
 

Detailed Description

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

This Expression stores values directly. Generated from literals


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