Polymorphic parallel implementation of the Filter pattern.
More...
|
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...
|
|
Polymorphic parallel implementation of the Filter pattern.
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
-
Generator | Callable type for value generator. |
Predicate | Callable type for filter predicate. |
Consumer | Callable type for value consumer. |
- Parameters
-
ex | Polymorphic 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 >
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
-
Generator | Callable type for value generator. |
Predicate | Callable type for filter predicate. |
Consumer | Callable type for value consumer. |
- Parameters
-
ex | Polymorphic execution policy object. |
generate_op | Generator callable object. |
predicate_op | Predicate callable object. |
consume_op | Consumer callable object. |