STK++ 0.9.13
STK::ApplyFunctor< Derived, Functor > Struct Template Reference

class allowing applying the functor Functor on a vector or row-vector More...

#include <STK_ExprBaseFunctors.h>

Public Types

typedef Derived::Type Type
 
typedef Type Col
 
typedef Type Row
 

Public Member Functions

 ApplyFunctor (ExprBase< Derived > const &lhs)
 constructor
 
Type operator() ()
 apply without argument
 
Type operator() (bool option)
 apply with an option argument
 
Type operator() (Type const &value, bool option)
 apply with a value and an option argument
 

Protected Attributes

Derived constlhs_
 

Detailed Description

template<typename Derived, typename Functor>
struct STK::ApplyFunctor< Derived, Functor >

class allowing applying the functor Functor on a vector or row-vector

Definition at line 332 of file STK_ExprBaseFunctors.h.

Member Typedef Documentation

◆ Col

template<typename Derived , typename Functor >
typedef Type STK::ApplyFunctor< Derived, Functor >::Col

Definition at line 335 of file STK_ExprBaseFunctors.h.

◆ Row

template<typename Derived , typename Functor >
typedef Type STK::ApplyFunctor< Derived, Functor >::Row

Definition at line 336 of file STK_ExprBaseFunctors.h.

◆ Type

template<typename Derived , typename Functor >
typedef Derived::Type STK::ApplyFunctor< Derived, Functor >::Type

Definition at line 334 of file STK_ExprBaseFunctors.h.

Constructor & Destructor Documentation

◆ ApplyFunctor()

template<typename Derived , typename Functor >
STK::ApplyFunctor< Derived, Functor >::ApplyFunctor ( ExprBase< Derived > const lhs)
inline

constructor

Definition at line 338 of file STK_ExprBaseFunctors.h.

338 : lhs_(lhs.asDerived())
#define STK_STATIC_ASSERT_POINT_OR_VECTOR_ONLY(EXPR)

References STK_STATIC_ASSERT_POINT_OR_VECTOR_ONLY.

Member Function Documentation

◆ operator()() [1/3]

template<typename Derived , typename Functor >
Type STK::ApplyFunctor< Derived, Functor >::operator() ( )
inline

apply without argument

Definition at line 341 of file STK_ExprBaseFunctors.h.

341{ return Functor(lhs_)();}

References STK::ApplyFunctor< Derived, Functor >::lhs_.

◆ operator()() [2/3]

template<typename Derived , typename Functor >
Type STK::ApplyFunctor< Derived, Functor >::operator() ( bool  option)
inline

apply with an option argument

Definition at line 343 of file STK_ExprBaseFunctors.h.

343{ return Functor(lhs_)(option);}

References STK::ApplyFunctor< Derived, Functor >::lhs_.

◆ operator()() [3/3]

template<typename Derived , typename Functor >
Type STK::ApplyFunctor< Derived, Functor >::operator() ( Type const value,
bool  option 
)
inline

apply with a value and an option argument

Definition at line 345 of file STK_ExprBaseFunctors.h.

346 { return Functor(lhs_)(value, option);}

References STK::ApplyFunctor< Derived, Functor >::lhs_.

Member Data Documentation

◆ lhs_


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