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

Template functor to compute the bitwise and 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

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

Private Attributes

param1_type const value_
 

Detailed Description

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

Template functor to compute the bitwise and with a fixed value.

Definition at line 726 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

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

Definition at line 730 of file STK_Functors.h.

◆ result_type

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

Definition at line 729 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 728 of file STK_Functors.h.

Constructor & Destructor Documentation

◆ BitwiseAndWithOp() [1/2]

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

Definition at line 732 of file STK_Functors.h.

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

◆ BitwiseAndWithOp() [2/2]

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

Definition at line 733 of file STK_Functors.h.

733: value_(value) {}

Member Function Documentation

◆ operator()()

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

Definition at line 735 of file STK_Functors.h.

735{return a & value_;}

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

Member Data Documentation

◆ value_

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

Definition at line 737 of file STK_Functors.h.

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


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