GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
Namespaces | Functions
mapreduce.h File Reference
#include <utility>
#include "common/execution_traits.h"
#include "common/iterator_traits.h"
Include dependency graph for mapreduce.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 grppi
 

Functions

template<typename Execution , typename... InputIterators, typename Identity , typename Transformer , typename Combiner , requires_iterators< InputIterators... > = 0>
auto grppi::map_reduce (const Execution &ex, std::tuple< InputIterators... > firsts, std::size_t size, Identity &&identity, Transformer &&transform_op, Combiner &&combine_op)
 Invoke Map/reduce pattern on a data sequence. More...
 
template<typename Execution , typename... InputIterators, typename InputIt , typename Identity , typename Transformer , typename Combiner , requires_iterators< InputIterators... > = 0, requires_iterator< InputIt > = 0>
auto grppi::map_reduce (const Execution &ex, std::tuple< InputIterators... > firsts, InputIt last, Identity &&identity, Transformer &&transform_op, Combiner &&combine_op)
 Invoke Map/reduce pattern on a data sequence. More...
 
template<typename Execution , typename InputIterator , typename Identity , typename Transformer , typename Combiner , requires_iterator< InputIterator > = 0>
auto grppi::map_reduce (const Execution &ex, InputIterator first, InputIterator last, Identity &&identity, Transformer &&transform_op, Combiner &&combine_op)
 Invoke Map/reduce pattern on a data sequence. More...
 
template<typename Execution , typename InputIterator , typename Identity , typename Transformer , typename Combiner , typename... OtherInputIterators, requires_iterator< InputIterator > = 0>
auto grppi::map_reduce (const Execution &ex, InputIterator first, InputIterator last, Identity &&identity, Transformer &&transform_op, Combiner &&combine_op, OtherInputIterators...other_firsts)
 Invoke Map/reduce pattern on multiple data sequences. More...