Schnek
schnek::ArrayUnaryOp< Exp1, OperatorType > Class Template Reference

#include <arrayexpression.hpp>

Public Types

typedef OperatorType::value_type value_type
 

Public Member Functions

 ArrayUnaryOp (const Exp1 &A_)
 
 ArrayUnaryOp (const ArrayUnaryOp &Op)
 
value_type operator[] (int i) const
 

Detailed Description

template<class Exp1, class OperatorType>
class schnek::ArrayUnaryOp< Exp1, OperatorType >

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

Constructor & Destructor Documentation

◆ ArrayUnaryOp() [1/2]

template<class Exp1 , class OperatorType >
schnek::ArrayUnaryOp< Exp1, OperatorType >::ArrayUnaryOp ( const Exp1 &  A_)
inline

Construct passing the reference to the expressions

◆ ArrayUnaryOp() [2/2]

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

Copy constructor

Member Function Documentation

◆ operator[]()

template<class Exp1 , class OperatorType >
value_type schnek::ArrayUnaryOp< Exp1, 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: