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

Template functor to test if a number is different than 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

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

Private Attributes

param1_type const value_
 

Detailed Description

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

Template functor to test if a number is different than a fixed value.

Definition at line 427 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

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

Definition at line 431 of file STK_Functors.h.

◆ result_type

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

Definition at line 430 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 429 of file STK_Functors.h.

Constructor & Destructor Documentation

◆ NotEqualWithOp() [1/2]

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

Definition at line 433 of file STK_Functors.h.

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

◆ NotEqualWithOp() [2/2]

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

Definition at line 434 of file STK_Functors.h.

434: value_(value) {}

Member Function Documentation

◆ operator()()

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

Definition at line 436 of file STK_Functors.h.

436{ return a != value_;}

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

Member Data Documentation

◆ value_

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

Definition at line 438 of file STK_Functors.h.

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


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