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

Template functor computing logical and with 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

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

Private Attributes

param1_type const value_
 

Detailed Description

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

Template functor computing logical and with a fixed value.

Definition at line 692 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

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

Definition at line 696 of file STK_Functors.h.

◆ result_type

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

Definition at line 695 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 694 of file STK_Functors.h.

Constructor & Destructor Documentation

◆ LogicalAndWithOp() [1/2]

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

Definition at line 698 of file STK_Functors.h.

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

◆ LogicalAndWithOp() [2/2]

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

Definition at line 699 of file STK_Functors.h.

699: value_(value) {}

Member Function Documentation

◆ operator()()

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

Definition at line 701 of file STK_Functors.h.

701{ return a && value_;}

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

Member Data Documentation

◆ value_

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

Definition at line 703 of file STK_Functors.h.

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


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