GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Functions
Polymorphic parallel filter pattern.

Polymorphic parallel implementation of the Filter pattern. More...

Collaboration diagram for Polymorphic parallel filter pattern.:

Functions

template<typename Generator , typename Predicate , typename Consumer >
void grppi::keep (polymorphic_execution &ex, Generator &&generate_op, Predicate &&predicate_op, Consumer &&consume_op)
 Invoke Filter pattern on a data sequence with polymorphic execution policy. This function keeps in the stream only those items that satisfy the predicate. More...
 
template<typename Generator , typename Predicate , typename Consumer >
void grppi::discard (polymorphic_execution &ex, Generator &&generate_op, Predicate &&predicate_op, Consumer &&consume_op)
 Invoke Filter pattern on a data sequence with polymorphic execution policy. This function discards from the stream those items that satisfy the predicate. More...
 

Detailed Description

Polymorphic parallel implementation of the Filter pattern.

Function Documentation

template<typename Generator , typename Predicate , typename Consumer >
void grppi::discard ( polymorphic_execution ex,
Generator &&  generate_op,
Predicate &&  predicate_op,
Consumer &&  consume_op 
)

Invoke Filter pattern on a data sequence with polymorphic execution policy. This function discards from the stream those items that satisfy the predicate.

Template Parameters
GeneratorCallable type for value generator.
PredicateCallable type for filter predicate.
ConsumerCallable type for value consumer.
Parameters
exPolymorphic execution policy object.
generate_opGenerator callable object.
predicate_opPredicate callable object.
consume_opConsumer callable object.
template<typename Generator , typename Predicate , typename Consumer >
void grppi::keep ( polymorphic_execution ex,
Generator &&  generate_op,
Predicate &&  predicate_op,
Consumer &&  consume_op 
)

Invoke Filter pattern on a data sequence with polymorphic execution policy. This function keeps in the stream only those items that satisfy the predicate.

Template Parameters
GeneratorCallable type for value generator.
PredicateCallable type for filter predicate.
ConsumerCallable type for value consumer.
Parameters
exPolymorphic execution policy object.
generate_opGenerator callable object.
predicate_opPredicate callable object.
consume_opConsumer callable object.