CAPD RedHom Library
capd::homAux::RangeAlgorithms< TbbComputationalModel > Class Template Reference

#include <capd/homAux/RangeAlgorithms.h>

Public Member Functions

 RangeAlgorithms ()
 
template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
void sort (Rng &rng, Cmp cmp=Cmp())
 
template<typename Func , typename Rng >
void forEach (Rng &rng, Func func=Func())
 
template<typename Func , typename T1 , typename T2 >
void forLoop (T1 _begin, T2 end, Func func=Func())
 
template<typename Rng , typename OutRng >
void partialSum (const Rng &rng, OutRng &out)
 
template<class Rng >
boost::range_iterator< Rng >::type maxElement (const Rng &rng)
 
template<typename Rng , typename Value , typename Op = std::plus<Value>>
Value accumulate (const Rng &rng, Value init, Op op=Op())
 

Constructor & Destructor Documentation

Member Function Documentation

template<typename Rng , typename Value , typename Op = std::plus<Value>>
Value capd::homAux::RangeAlgorithms< StdComputationalModel >::accumulate ( const Rng &  rng,
Value  init,
Op  op = Op() 
)
inlineinherited
template<typename Func , typename Rng >
void capd::homAux::RangeAlgorithms< StdComputationalModel >::forEach ( Rng &  rng,
Func  func = Func() 
)
inlineinherited
template<typename Func , typename T1 , typename T2 >
void capd::homAux::RangeAlgorithms< StdComputationalModel >::forLoop ( T1  _begin,
T2  end,
Func  func = Func() 
)
inlineinherited
template<class Rng >
boost::range_iterator<Rng>::type capd::homAux::RangeAlgorithms< StdComputationalModel >::maxElement ( const Rng &  rng)
inlineinherited
template<typename Rng , typename OutRng >
void capd::homAux::RangeAlgorithms< StdComputationalModel >::partialSum ( const Rng &  rng,
OutRng &  out 
)
inlineinherited
template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
void capd::homAux::RangeAlgorithms< StdComputationalModel >::sort ( Rng &  rng,
Cmp  cmp = Cmp() 
)
inlineinherited