GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
Public Member Functions | List of all members
grppi::filter_t< Predicate > Class Template Reference

Representation of filter pattern. Represents a filter that can be used as a stage on a pipeline. More...

#include <filter_pattern.h>

Public Member Functions

 filter_t (Predicate &&p) noexcept
 Constructs a filter with a predicate. More...
 
template<typename I >
bool operator() (I &&item) const
 Invokes the predicate of the filter over a data item. More...
 

Detailed Description

template<typename Predicate>
class grppi::filter_t< Predicate >

Representation of filter pattern. Represents a filter that can be used as a stage on a pipeline.

Template Parameters
PredicateCallable type for the filter predicate.

Constructor & Destructor Documentation

template<typename Predicate >
grppi::filter_t< Predicate >::filter_t ( Predicate &&  p)
inlinenoexcept

Constructs a filter with a predicate.

Parameters
pPredicate for the filter.

Member Function Documentation

template<typename Predicate >
template<typename I >
bool grppi::filter_t< Predicate >::operator() ( I &&  item) const
inline

Invokes the predicate of the filter over a data item.


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