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

Sequential implementation fo the Filter pattern. More...

Collaboration diagram for Sequential filter pattern.:

Functions

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

Detailed Description

Sequential implementation fo the Filter pattern.

Function Documentation

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

Invoke Filter 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
exSequential 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 ( sequential_execution  ,
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
exSequential execution policy object.
generate_opGenerator callable object.
predicate_opPredicate callable object.
consume_opConsumer callable object.