STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
Classes | Functions
Logical Function Objects

Function objects implement logic operations. Defined in stapl/algorithms/functional.hpp. More...

+ Collaboration diagram for Logical Function Objects:

Classes

struct  stapl::logical_and< T >
 Function which returns the logical and of its arguments. More...
 
struct  stapl::logical_not< T >
 Function which returns the logical not of its argument. More...
 
struct  stapl::detail::unary_negate_helper< Predicate, bool >
 Base class for unary_negate the reflects the type argument_type if defined in the template. More...
 
struct  stapl::detail::binary_negate_helper< Predicate, bool >
 Base class for binary_negate the reflects the type first_argument_type and second_argument_type if they are defined in the template. It's assumed that the two argument type parameters either both exist or both do not, so we only check for first_argument_type. More...
 
struct  stapl::unary_negate< Predicate >
 Function which returns whether its argument was not matched by the given predicate. More...
 
struct  stapl::binary_negate< Predicate >
 Function which returns whether its arguments were not matched by the given predicate. More...
 
struct  stapl::identity< T >
 Function which returns its argument. More...
 
struct  stapl::identity_op
 Function which returns its argument. More...
 

Functions

 stapl::STAPL_DEFINE_IDENTITY_VALUE (logical_and< long unsigned int >, long unsigned int, 1) template< typename T > struct logical_or
 Function which returns the logical or of its arguments. More...
 
template<typename Predicate >
unary_negate< Predicate > stapl::not1 (Predicate const &pred)
 Construct a unary_negate functor with the given predicate. More...
 
template<typename Predicate >
binary_negate< Predicate > stapl::not2 (Predicate const &pred)
 Construct a binary_negate functor with the given predicate. More...
 

Detailed Description

Function objects implement logic operations. Defined in stapl/algorithms/functional.hpp.

Function Documentation

◆ STAPL_DEFINE_IDENTITY_VALUE()

stapl::STAPL_DEFINE_IDENTITY_VALUE ( logical_and< long unsigned int >  ,
long unsigned  int,
 
)

Function which returns the logical or of its arguments.

Template Parameters
TType of the arguments.

◆ not1()

template<typename Predicate >
unary_negate<Predicate> stapl::not1 ( Predicate const &  pred)

Construct a unary_negate functor with the given predicate.

Parameters
predThe predicate used to construct the functor.
Returns
An instance of unary_negate using the given predicate.

◆ not2()

template<typename Predicate >
binary_negate<Predicate> stapl::not2 ( Predicate const &  pred)

Construct a binary_negate functor with the given predicate.

Parameters
predThe predicate used to construct the functor.
Returns
An instance of binary_negate using the given predicate.