STK++ 0.9.13
STK::ModuloWithOp< 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

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

Private Attributes

param1_type const value_
 

Detailed Description

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

Template functor to compute the minimum with a fixed value.

Definition at line 641 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

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

Definition at line 645 of file STK_Functors.h.

◆ result_type

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

Definition at line 644 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 643 of file STK_Functors.h.

643{ NbParam_ = 1 };

Constructor & Destructor Documentation

◆ ModuloWithOp() [1/2]

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

Definition at line 647 of file STK_Functors.h.

647: value_(value) {}
param1_type const value_

◆ ModuloWithOp() [2/2]

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

Definition at line 648 of file STK_Functors.h.

648: value_(value.value_) {}

Member Function Documentation

◆ operator()()

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

Definition at line 650 of file STK_Functors.h.

650{return a % value_;}

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

Member Data Documentation

◆ value_

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

Definition at line 652 of file STK_Functors.h.

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


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