Galois::GVectorElementAccumulator< VectorTy > Class Template Reference

Accumulator for vector where a vector is treated as a map and accumulate does element-wise addition among all entries. More...

#include <Accumulator.h>

Inheritance diagram for Galois::GVectorElementAccumulator< VectorTy >:
Galois::GReducible< VectorTy, ReduceVectorWrap< ReduceAssignWrap< std::plus< VectorTy::value_type > > > >

List of all members.

Public Member Functions

void resize (size_t s)
VectorTy & getLocal ()
void update (size_t index, const value_type &rhs)

Private Types

typedef ReduceAssignWrap
< std::plus< typename
VectorTy::value_type > > 
ElementFunc
typedef GReducible< VectorTy,
ReduceVectorWrap< ElementFunc > > 
base_type
typedef VectorTy::value_type value_type

Private Attributes

ElementFunc func

Detailed Description

template<typename VectorTy>
class Galois::GVectorElementAccumulator< VectorTy >

Accumulator for vector where a vector is treated as a map and accumulate does element-wise addition among all entries.


Member Typedef Documentation

template<typename VectorTy >
typedef GReducible<VectorTy, ReduceVectorWrap<ElementFunc> > Galois::GVectorElementAccumulator< VectorTy >::base_type [private]
template<typename VectorTy >
typedef ReduceAssignWrap<std::plus<typename VectorTy::value_type> > Galois::GVectorElementAccumulator< VectorTy >::ElementFunc [private]
template<typename VectorTy >
typedef VectorTy::value_type Galois::GVectorElementAccumulator< VectorTy >::value_type [private]

Member Function Documentation

template<typename VectorTy >
VectorTy& Galois::GVectorElementAccumulator< VectorTy >::getLocal (  )  [inline]
template<typename VectorTy >
void Galois::GVectorElementAccumulator< VectorTy >::resize ( size_t  s  )  [inline]
template<typename VectorTy >
void Galois::GVectorElementAccumulator< VectorTy >::update ( size_t  index,
const value_type rhs 
) [inline]

Member Data Documentation

template<typename VectorTy >
ElementFunc Galois::GVectorElementAccumulator< VectorTy >::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