Schnek
schnek::UnaryOp< oper, vtype > Class Template Reference

#include <expression.hpp>

Inheritance diagram for schnek::UnaryOp< oper, vtype >:
Collaboration diagram for schnek::UnaryOp< oper, vtype >:

Public Member Functions

 UnaryOp (pExpression expr_)
 
vtype eval ()
 Return the modified value.
 
bool isConstant ()
 Constancy depends on the constancy of the expression.
 
DependencyList getDependencies ()
 returns the dependencies of the sub expression
 
- 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<class oper, class vtype>
class schnek::UnaryOp< oper, vtype >

Unary operator expression

This expression modifies the value according to a unary operator. For generality the operator type is templated.


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