Galois::GReduceAverage< T > Class Template Reference

#include <Accumulator.h>

List of all members.

Classes

struct  AVG

Public Member Functions

void update (const T &_newVal)
const T get ()
 returns the thread local value if in a parallel loop or the final reduction if in serial mode
void reset (const T &d)
GReduceAverageinsert (const T &rhs)

Private Types

typedef std::pair< T, unsigned > TP

Private Attributes

GReducible< std::pair< T,
unsigned >, AVG
data

template<typename T>
class Galois::GReduceAverage< T >


Member Typedef Documentation

template<typename T >
typedef std::pair<T, unsigned> Galois::GReduceAverage< T >::TP [private]

Member Function Documentation

template<typename T >
const T Galois::GReduceAverage< T >::get (  )  [inline]

returns the thread local value if in a parallel loop or the final reduction if in serial mode

template<typename T >
GReduceAverage& Galois::GReduceAverage< T >::insert ( const T &  rhs  )  [inline]
template<typename T >
void Galois::GReduceAverage< T >::reset ( const T &  d  )  [inline]
template<typename T >
void Galois::GReduceAverage< T >::update ( const T &  _newVal  )  [inline]

Member Data Documentation

template<typename T >
GReducible<std::pair<T, unsigned>, AVG> Galois::GReduceAverage< T >::data [private]

The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:29 2011 for Galois by  doxygen 1.6.3