All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Classes | Namespaces | Functions
accumulate_functors.hpp File Reference
#include "paal/utils/functors.hpp"
#include "paal/utils/type_functions.hpp"
#include <boost/range/adaptor/transformed.hpp>
#include <boost/range/algorithm/max_element.hpp>
#include <boost/range/algorithm/min_element.hpp>
#include <boost/range/numeric.hpp>

Go to the source code of this file.

Classes

class  paal::average_accumulator< ValueType, CounterType >
 helper class facilitating counting average More...
 

Namespaces

 paal
 global namespace of project.
 

Functions

template<typename Range , typename T , typename Functor , typename BinaryOperation = utils::plus>
paal::accumulate_functor (const Range &rng, T init, Functor f, BinaryOperation bin_op=BinaryOperation{})
 combination of boost::accumulate and boost::adaptors::transformed
 
template<typename Range , typename Functor >
auto paal::sum_functor (const Range &rng, Functor f)
 sum of functor values over the range elements
 
template<typename Range , typename Functor >
auto paal::max_element_functor (Range &&range, Functor f)
 combination of boost::max_element and boost::adaptors::transformed
 
template<typename Range , typename Functor >
auto paal::min_element_functor (Range &&range, Functor f)
 combination of boost::min_element and boost::adaptors::transformed
 

Detailed Description

Author
Piotr Wygocki, Robert Rosolek, Andrzej Pacuk
Version
1.0
Date
2014-11-18

Definition in file accumulate_functors.hpp.