Native parallel implementation fo the Filter pattern.
More...
|
template<typename Generator , typename Predicate , typename Consumer > |
void | grppi::keep (parallel_execution_native &ex, Generator generate_op, Predicate predicate_op, Consumer consume_op) |
| Invoke Filter pattern 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_native &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...
|
|
Native parallel implementation fo the Filter pattern.
template<typename Generator , typename Predicate , typename Consumer >
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
-
Generator | Callable type for value generator. |
Predicate | Callable type for filter predicate. |
Consumer | Callable type for value consumer. |
- Parameters
-
ex | Native parallel execution policy object. |
generate_op | Generator callable object. |
predicate_op | Predicate callable object. |
consume_op | Consumer callable object. |
template<typename Generator , typename Predicate , typename Consumer >
Invoke Filter pattern pattern on a data sequence with sequential execution policy. This function keeps in the stream only those items that satisfy the predicate.
- Template Parameters
-
Generator | Callable type for value generator. |
Predicate | Callable type for filter predicate. |
Consumer | Callable type for value consumer. |
- Parameters
-
ex | Native parallel execution policy object. |
generate_op | Generator callable object. |
predicate_op | Predicate callable object. |
consume_op | Consumer callable object. |