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

TBB parallel implementation fo the Filter pattern. More...

Collaboration diagram for TBB parallel filter pattern.:

Functions

template<typename Generator , typename Predicate , typename Consumer >
void grppi::keep (parallel_execution_tbb &ex, Generator generate_op, Predicate predicate_op, Consumer consume_op)
 Invoke Filter pattern on a data sequence with sequential 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 (parallel_execution_tbb &ex, Generator generate_op, Predicate predicate_op, Consumer consume_op)
 Invoke Filter pattern pattern on a data sequence with sequential execution policy. This function discards from the stream those items that satisfy the predicate. More...
 

Detailed Description

TBB parallel implementation fo the Filter pattern.

Function Documentation

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

Invoke Filter pattern pattern on a data sequence with sequential 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
exTBB parallel 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 ( parallel_execution_tbb ex,
Generator  generate_op,
Predicate  predicate_op,
Consumer  consume_op 
)

Invoke Filter pattern on a data sequence with sequential 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
exTBB parallel execution policy object.
generate_opGenerator callable object.
predicate_opPredicate callable object.
consume_opConsumer callable object.