STK++ 0.9.13
STK::ProductWithOp< bool > Struct Reference

Specialization for boolean. More...

#include <STK_Functors.h>

Public Types

enum  { NbParam_ = 1 }
 
typedef bool const result_type
 
typedef bool const param1_type
 

Public Member Functions

 ProductWithOp (bool value)
 
 ProductWithOp (ProductWithOp const &value)
 
result_type operator() (param1_type const &a) const
 

Private Attributes

bool const value_
 

Detailed Description

Specialization for boolean.

Definition at line 580 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

Definition at line 584 of file STK_Functors.h.

◆ result_type

Definition at line 583 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

Enumerator
NbParam_ 

Definition at line 582 of file STK_Functors.h.

Constructor & Destructor Documentation

◆ ProductWithOp() [1/2]

STK::ProductWithOp< bool >::ProductWithOp ( bool  value)
inline

Definition at line 586 of file STK_Functors.h.

586: value_(value) {}

◆ ProductWithOp() [2/2]

STK::ProductWithOp< bool >::ProductWithOp ( ProductWithOp< bool > const value)
inline

Definition at line 587 of file STK_Functors.h.

587: value_(value.value_) {}

Member Function Documentation

◆ operator()()

result_type STK::ProductWithOp< bool >::operator() ( param1_type const a) const
inline

Definition at line 589 of file STK_Functors.h.

589{return a && value_;}

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

Member Data Documentation

◆ value_

bool const STK::ProductWithOp< bool >::value_
private

Definition at line 591 of file STK_Functors.h.


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