GrPPI  1.0
Generic and Reusable Parallel Pattern Interface
Functions
Farm pattern

Interface for applyinng the Farm pattern. More...

Collaboration diagram for Farm pattern:

Functions

template<typename Transformer >
auto grppi::farm (int ntasks, Transformer &&transform_op)
 Invoke Farm pattern on a data stream that can be composed in other streaming patterns. More...
 

Detailed Description

Interface for applyinng the Farm pattern.

Function Documentation

◆ farm()

template<typename Transformer >
auto grppi::farm ( int  ntasks,
Transformer &&  transform_op 
)

Invoke Farm pattern on a data stream that can be composed in other streaming patterns.

Template Parameters
ExecutionExecution policy type.
TransformerCallable type for the transformation operation.
Parameters
exExecution policy object.
transform_opTransformer operation.