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

#include <expression.hpp>

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

Public Member Functions

 BinaryOp (pExpression expr1_, pExpression expr2_)
 
vtype eval ()
 Return the calculated value.
 
bool isConstant ()
 Constancy depends on the constancy of both expressions.
 
DependencyList getDependencies ()
 returns the joint dependencies of both sub expression
 
- Public Member Functions inherited from schnek::Expression< vtype >
vtype operator() ()
 The () operator allows expressions to be used as function objects.
 

Friends

class BinaryOp< typename oper::Inverted, vtype >
 

Additional Inherited Members

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

Detailed Description

template<class oper, class vtype>
class schnek::BinaryOp< oper, vtype >

Binary operator expression

This expression calculates a value from two arguments according to a binary operator. For generality the operator type is templated.


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