GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Modules | Functions
Stream filter pattern

Interface for applyinng the Filter pattern. More...

Collaboration diagram for Stream filter pattern:

Modules

 Native parallel filter pattern.
 Native parallel implementation fo the Filter pattern.
 
 OpenMP parallel filter pattern.
 OpenMP parallel implementation fo the Filter pattern.
 
 Polymorphic parallel filter pattern.
 Polymorphic parallel implementation of the Filter pattern.
 
 Sequential filter pattern.
 Sequential implementation fo the Filter pattern.
 
 TBB parallel filter pattern.
 TBB parallel implementation fo the Filter pattern.
 

Functions

template<typename Execution , typename Predicate >
auto grppi::keep (Execution &ex, Predicate &&predicate_op)
 Invoke Filter pattern on a data stream that can be composed in other streaming patterns. This function keeps in the stream only those items that satisfy the predicate. More...
 
template<typename Execution , typename Predicate >
auto grppi::discard (Execution &ex, Predicate &&predicate_op)
 Invoke Filter pattern on a data stream that can be composed in other streaming patterns. This function discards from the stream those items that satisfy the predicate. More...
 

Detailed Description

Interface for applyinng the Filter pattern.

Function Documentation

template<typename Execution , typename Predicate >
auto grppi::discard ( Execution &  ex,
Predicate &&  predicate_op 
)

Invoke Filter pattern on a data stream that can be composed in other streaming patterns. This function discards from the stream those items that satisfy the predicate.

Template Parameters
ExecutionExecution policy.
PredicateCallable type for filter predicate.
Parameters
exExecution policy object.
predicate_opPredicate callable object.
template<typename Execution , typename Predicate >
auto grppi::keep ( Execution &  ex,
Predicate &&  predicate_op 
)

Invoke Filter pattern on a data stream that can be composed in other streaming patterns. This function keeps in the stream only those items that satisfy the predicate.

Template Parameters
ExecutionExecution policy.
PredicateCallable type for filter predicate.
Parameters
exExecution policy object.
predicate_opPredicate callable object.