GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
Polymorphic execution implementation of the Divide/conquer pattern. More...
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 &÷_op, Solver &&solve_op, Combiner &&combine_op) |
Invoke Divide/conquer pattern with polymorphic execution. More... | |
Polymorphic execution implementation of the Divide/conquer pattern.
pattern.
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.
Input | Type used for the input input. |
Divider | Callable type for the divider operation. |
Solver | Callable type for the solver operation. |
Combiner | Callable type for the combiner operation. |
ex | Sequential execution policy object. |
input | Input input to be solved. |
divider_op | Divider operation. |
solver_op | Solver operation. |
combiner_op | Combiner operation. |