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

Template functor to test if a number is equal to a fixed value. More...

#include <STK_Functors.h>

Public Types

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

Public Member Functions

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

Private Attributes

param1_type const value_
 

Detailed Description

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

Template functor to test if a number is equal to a fixed value.

Definition at line 410 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

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

Definition at line 414 of file STK_Functors.h.

◆ result_type

template<typename Type >
typedef bool STK::EqualWithOp< Type >::result_type

Definition at line 413 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 412 of file STK_Functors.h.

412{ NbParam_ = 1 };

Constructor & Destructor Documentation

◆ EqualWithOp() [1/2]

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

Definition at line 416 of file STK_Functors.h.

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

◆ EqualWithOp() [2/2]

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

Definition at line 417 of file STK_Functors.h.

417: value_(value) {}

Member Function Documentation

◆ operator()()

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

Definition at line 419 of file STK_Functors.h.

419{ return a == value_;}

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

Member Data Documentation

◆ value_

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

Definition at line 421 of file STK_Functors.h.

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


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