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

#include <arrayexpression.hpp>

Public Types

typedef OperatorType::value_type value_type
 

Public Member Functions

SCHNEK_INLINE ArrayUnaryOp (const Exp1 &A_)
 
SCHNEK_INLINE ArrayUnaryOp (const ArrayUnaryOp &Op)
 
SCHNEK_INLINE value_type operator[] (size_t 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_INLINE 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_INLINE schnek::ArrayUnaryOp< Exp1, OperatorType >::ArrayUnaryOp ( const ArrayUnaryOp< Exp1, OperatorType > &  Op)
inline

Copy constructor

Member Function Documentation

◆ operator[]()

template<class Exp1 , class OperatorType >
SCHNEK_INLINE value_type schnek::ArrayUnaryOp< Exp1, OperatorType >::operator[] ( size_t  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: