GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Functions
Polymorphic execution divide/conquer

Polymorphic execution implementation of the Divide/conquer pattern. More...

Collaboration diagram for Polymorphic execution divide/conquer:

Functions

template<typename Input , typename Divider , typename Solver , typename Combiner >
std::result_of< Solver(Input)>::type grppi::divide_conquer (polymorphic_execution &ex, Input &input, Divider &&divide_op, Solver &&solve_op, Combiner &&combine_op)
 Invoke Divide/conquer pattern with polymorphic execution. More...
 

Detailed Description

Polymorphic execution implementation of the Divide/conquer pattern.

pattern.

Function Documentation

template<typename Input , typename Divider , typename Solver , typename Combiner >
std::result_of<Solver(Input)>::type grppi::divide_conquer ( polymorphic_execution ex,
Input &  input,
Divider &&  divide_op,
Solver &&  solve_op,
Combiner &&  combine_op 
)

Invoke Divide/conquer pattern with polymorphic execution.

Template Parameters
InputType used for the input input.
DividerCallable type for the divider operation.
SolverCallable type for the solver operation.
CombinerCallable type for the combiner operation.
Parameters
exSequential execution policy object.
inputInput input to be solved.
divider_opDivider operation.
solver_opSolver operation.
combiner_opCombiner operation.