Sequential implementation of the Farm pattern.
More...
|
template<typename Generator , typename Consumer > |
void | grppi::farm (sequential_execution ex, Generator generate_op, Consumer consume_op) |
| Invoke Farm pattern on a data stream with sequential execution with a generator and a consumer. More...
|
|
template<typename Generator , typename Transformer , typename Consumer > |
void | grppi::farm (sequential_execution ex, Generator generate_op, Transformer transform_op, Consumer consume_op) |
| Invoke Farm pattern on a data stream with sequential execution with a generator, a transformer, and a comsumer. More...
|
|
Sequential implementation of the Farm pattern.
template<typename Generator , typename Consumer >
Invoke Farm pattern on a data stream with sequential execution with a generator and a consumer.
- Template Parameters
-
Generator | Callable type for the generation operation. |
Consumer | Callable type for the consume operation. |
- Parameters
-
ex | Sequential execution policy object. |
generate_op | Gnerator operation. |
consume_op | Consumer operation. |
template<typename Generator , typename Transformer , typename Consumer >
void grppi::farm |
( |
sequential_execution |
ex, |
|
|
Generator |
generate_op, |
|
|
Transformer |
transform_op, |
|
|
Consumer |
consume_op |
|
) |
| |
Invoke Farm pattern on a data stream with sequential execution with a generator, a transformer, and a comsumer.
- Template Parameters
-
Generator | Callable type for the generation operation. |
Transformer | Callable type for the transformation operation. |
Consumer | Callable type for the consume operation. |
- Parameters
-
ex | Sequential execution policy object. |
generate_op | Generator operation. |
transform_op | Transformer operation. |
consume_op | Consumer operation. |