GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Functions
Sequential farm pattern

Sequential implementation of the Farm pattern. More...

Collaboration diagram for Sequential farm pattern:

Functions

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

Detailed Description

Sequential implementation of the Farm pattern.

Function Documentation

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.

Template Parameters
GeneratorCallable type for the generation operation.
ConsumerCallable type for the consume operation.
Parameters
exSequential execution policy object.
generate_opGnerator operation.
consume_opConsumer 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
GeneratorCallable type for the generation operation.
TransformerCallable type for the transformation operation.
ConsumerCallable type for the consume operation.
Parameters
exSequential execution policy object.
generate_opGenerator operation.
transform_opTransformer operation.
consume_opConsumer operation.