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

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

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

Private Attributes

param1_type const value_
 

Detailed Description

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

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

Definition at line 743 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

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

Definition at line 747 of file STK_Functors.h.

◆ result_type

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

Definition at line 746 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 745 of file STK_Functors.h.

Constructor & Destructor Documentation

◆ BitwiseOrWithOp() [1/2]

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

Definition at line 749 of file STK_Functors.h.

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

◆ BitwiseOrWithOp() [2/2]

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

Definition at line 750 of file STK_Functors.h.

750: value_(value) {}

Member Function Documentation

◆ operator()()

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

Definition at line 752 of file STK_Functors.h.

752{return a | value_;}

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

Member Data Documentation

◆ value_

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

Definition at line 754 of file STK_Functors.h.

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


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