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

Template functor to compute the minimum with 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

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

Private Attributes

param1_type const value_
 

Detailed Description

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

Template functor to compute the minimum with a fixed value.

Definition at line 675 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

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

Definition at line 679 of file STK_Functors.h.

◆ result_type

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

Definition at line 678 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 677 of file STK_Functors.h.

677{ NbParam_ = 1 };

Constructor & Destructor Documentation

◆ MaxWithOp() [1/2]

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

Definition at line 681 of file STK_Functors.h.

681: value_(value) {}
param1_type const value_

◆ MaxWithOp() [2/2]

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

Definition at line 682 of file STK_Functors.h.

682: value_(value.value_) {}

Member Function Documentation

◆ operator()()

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

Definition at line 684 of file STK_Functors.h.

684{return std::max(a,value_);}

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

Member Data Documentation

◆ value_

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

Definition at line 686 of file STK_Functors.h.

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


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