Galois::GMapElementAccumulator< MapTy > Class Template Reference

Accumulator for map where accumulate does element-wise addition among all entries. More...

#include <Accumulator.h>

Inheritance diagram for Galois::GMapElementAccumulator< MapTy >:
Galois::GReducible< MapTy, ReduceMapWrap< ReduceAssignWrap< std::plus< MapTy::mapped_type > > > >

List of all members.

Public Member Functions

void update (const key_type &index, const mapped_type &rhs)

Private Types

typedef ReduceAssignWrap
< std::plus< typename
MapTy::mapped_type > > 
ElementFunc
typedef GReducible< MapTy,
ReduceMapWrap< ElementFunc > > 
base_type
typedef MapTy::mapped_type mapped_type
typedef MapTy::key_type key_type

Private Attributes

ElementFunc func

Detailed Description

template<typename MapTy>
class Galois::GMapElementAccumulator< MapTy >

Accumulator for map where accumulate does element-wise addition among all entries.


Member Typedef Documentation

template<typename MapTy >
typedef GReducible<MapTy, ReduceMapWrap<ElementFunc> > Galois::GMapElementAccumulator< MapTy >::base_type [private]
template<typename MapTy >
typedef ReduceAssignWrap<std::plus<typename MapTy::mapped_type> > Galois::GMapElementAccumulator< MapTy >::ElementFunc [private]
template<typename MapTy >
typedef MapTy::key_type Galois::GMapElementAccumulator< MapTy >::key_type [private]
template<typename MapTy >
typedef MapTy::mapped_type Galois::GMapElementAccumulator< MapTy >::mapped_type [private]

Member Function Documentation

template<typename MapTy >
void Galois::GMapElementAccumulator< MapTy >::update ( const key_type index,
const mapped_type rhs 
) [inline]

Member Data Documentation

template<typename MapTy >
ElementFunc Galois::GMapElementAccumulator< MapTy >::func [private]

The documentation for this class was generated from the following file:

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1