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

class allowing applying the weighted 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

 ApplyWeightedFunctor (ExprBase< Derived > const &lhs)
 constructor
 
template<typename Weights >
Type operator() (ExprBase< Weights > const &w)
 apply with weights
 
template<typename Weights >
Type operator() (ExprBase< Weights > const &w, bool option)
 apply with weight and an option argument
 
template<typename Weights >
Type operator() (ExprBase< Weights > const &w, Type const &value, bool option)
 apply with weight, a value and an option argument
 

Protected Attributes

Derived constlhs_
 

Detailed Description

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

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

Definition at line 356 of file STK_ExprBaseFunctors.h.

Member Typedef Documentation

◆ Col

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

Definition at line 359 of file STK_ExprBaseFunctors.h.

◆ Row

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

Definition at line 360 of file STK_ExprBaseFunctors.h.

◆ Type

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

Definition at line 358 of file STK_ExprBaseFunctors.h.

Constructor & Destructor Documentation

◆ ApplyWeightedFunctor()

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

constructor

Definition at line 362 of file STK_ExprBaseFunctors.h.

362 : 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 >
template<typename Weights >
Type STK::ApplyWeightedFunctor< Derived, Functor >::operator() ( ExprBase< Weights > const w)
inline

apply with weights

Definition at line 366 of file STK_ExprBaseFunctors.h.

366{ return Functor(lhs_)(w);}

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

◆ operator()() [2/3]

template<typename Derived , typename Functor >
template<typename Weights >
Type STK::ApplyWeightedFunctor< Derived, Functor >::operator() ( ExprBase< Weights > const w,
bool  option 
)
inline

apply with weight and an option argument

Definition at line 369 of file STK_ExprBaseFunctors.h.

370 { return Functor(lhs_)(w, option);}

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

◆ operator()() [3/3]

template<typename Derived , typename Functor >
template<typename Weights >
Type STK::ApplyWeightedFunctor< Derived, Functor >::operator() ( ExprBase< Weights > const w,
Type const value,
bool  option 
)
inline

apply with weight, a value and an option argument

Definition at line 373 of file STK_ExprBaseFunctors.h.

374 { return Functor(lhs_)(w, value, option);}

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

Member Data Documentation

◆ lhs_


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