STK++ 0.9.13
STK::SumWithOp< Type > Struct Template Reference

Template functor to add a number to a fixed value. More...

#include <STK_Functors.h>

Public Types

enum  { NbParam_ = 1 }
 
typedef Type result_type
 
typedef hidden::RemoveConst< Type >::Type param1_type
 

Public Member Functions

 SumWithOp (SumWithOp const &value)
 
 SumWithOp (Type value)
 
result_type operator() (param1_type const &a) const
 

Private Attributes

param1_type const value_
 

Detailed Description

template<typename Type>
struct STK::SumWithOp< Type >

Template functor to add a number to a fixed value.

Definition at line 512 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

template<typename Type >
typedef hidden::RemoveConst<Type>::Type STK::SumWithOp< Type >::param1_type

Definition at line 516 of file STK_Functors.h.

◆ result_type

template<typename Type >
typedef Type STK::SumWithOp< Type >::result_type

Definition at line 515 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 514 of file STK_Functors.h.

514{ NbParam_ = 1 };

Constructor & Destructor Documentation

◆ SumWithOp() [1/2]

template<typename Type >
STK::SumWithOp< Type >::SumWithOp ( SumWithOp< Type > const value)
inline

Definition at line 518 of file STK_Functors.h.

518: value_(value.value_) {}
param1_type const value_

◆ SumWithOp() [2/2]

template<typename Type >
STK::SumWithOp< Type >::SumWithOp ( Type  value)
inline

Definition at line 519 of file STK_Functors.h.

519: value_(value) {}

Member Function Documentation

◆ operator()()

template<typename Type >
result_type STK::SumWithOp< Type >::operator() ( param1_type const a) const
inline

Definition at line 521 of file STK_Functors.h.

521{ return a + value_;}

References STK::SumWithOp< Type >::value_.

Member Data Documentation

◆ value_

template<typename Type >
param1_type const STK::SumWithOp< Type >::value_
private

Definition at line 523 of file STK_Functors.h.

Referenced by STK::SumWithOp< Type >::operator()().


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