Schnek
schnek::ArrayBinaryOp< Exp1, Exp2, OperatorType > Class Template Reference

#include <arrayexpression.hpp>

Public Types

typedef OperatorType::value_type value_type
 

Public Member Functions

 ArrayBinaryOp (const Exp1 &A_, const Exp2 &B_)
 
 ArrayBinaryOp (const ArrayBinaryOp &Op)
 
value_type operator[] (int i) const
 

Detailed Description

template<class Exp1, class Exp2, class OperatorType>
class schnek::ArrayBinaryOp< Exp1, Exp2, OperatorType >

Operator class implementing binary operators for the ArrayExpression. Holds const references to the expressions and type information of the operator

Constructor & Destructor Documentation

◆ ArrayBinaryOp() [1/2]

template<class Exp1 , class Exp2 , class OperatorType >
schnek::ArrayBinaryOp< Exp1, Exp2, OperatorType >::ArrayBinaryOp ( const Exp1 &  A_,
const Exp2 &  B_ 
)
inline

Construct passing the two references to the expressions

◆ ArrayBinaryOp() [2/2]

template<class Exp1 , class Exp2 , class OperatorType >
schnek::ArrayBinaryOp< Exp1, Exp2, OperatorType >::ArrayBinaryOp ( const ArrayBinaryOp< Exp1, Exp2, OperatorType > &  Op)
inline

Copy constructor

Member Function Documentation

◆ operator[]()

template<class Exp1 , class Exp2 , class OperatorType >
value_type schnek::ArrayBinaryOp< Exp1, Exp2, OperatorType >::operator[] ( int  i) const
inline

Return the i-th element of the operator expression Gets the i-th elements of A and B and asks the static OperatorType::apply method to perform the calculation


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