GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Namespaces | Functions
seq/stream_filter.h File Reference
#include "sequential_execution.h"
Include dependency graph for seq/stream_filter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 grppi
 

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...