GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Functions
Polymorphic execution farm pattern

Polymorphic execution implementation of the Farm pattern. More...

Collaboration diagram for Polymorphic execution farm pattern:

Functions

template<typename Generator , typename Consumer >
void grppi::farm (polymorphic_execution &ex, Generator &&generate_op, Consumer &&consume_op)
 Invoke Farm pattern on a data stream with polymorphic execution with a generator and a consumer. More...
 
template<typename Generator , typename Transformer , typename Consumer >
void grppi::farm (polymorphic_execution &ex, Generator &&generate_op, Transformer &&transform_op, Consumer &&consume_op)
 Invoke Farm pattern on a data stream with polymorphic execution with a generator and a consumer. More...
 

Detailed Description

Polymorphic execution implementation of the Farm pattern.

Function Documentation

template<typename Generator , typename Consumer >
void grppi::farm ( polymorphic_execution ex,
Generator &&  generate_op,
Consumer &&  consume_op 
)

Invoke Farm pattern on a data stream with polymorphic execution with a generator and a consumer.

Template Parameters
GeneratorCallable type for the generation operation.
ConsumerCallable type for the consume operation.
Parameters
exPolymorphic execution policy object.
generate_opGenerator operation.
consume_opConsumer operation.
template<typename Generator , typename Transformer , typename Consumer >
void grppi::farm ( polymorphic_execution ex,
Generator &&  generate_op,
Transformer &&  transform_op,
Consumer &&  consume_op 
)

Invoke Farm pattern on a data stream with polymorphic execution with a generator and a consumer.

Template Parameters
GeneratorCallable type for the generation operation.
TranformerCallable type for the tranformation operation.
ConsumerCallable type for the consume operation.
Parameters
exPolymorphic execution policy object.
generate_opGenerator operation.
transform_opTransformer operation.
consume_opConsumer operation.