Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::GAccumulator< T > Class Template Reference

Accumulator for T where accumulation is plus. More...

#include <Reduction.h>

Inheritance diagram for galois::GAccumulator< T >:
galois::Reducible< T, std::plus< T >, identity_value_zero< T > > galois::identity_value_zero< T >

Public Member Functions

 GAccumulator ()
 
GAccumulatoroperator+= (const T &rhs)
 
GAccumulatoroperator-= (const T &rhs)
 
- Public Member Functions inherited from galois::Reducible< T, std::plus< T >, identity_value_zero< T > >
 Reducible (std::plus< T >merge_func, identity_value_zero< T >id_func)
 
void update (T &&rhs)
 Updates the thread local value by applying the reduction operator to current and newly provided value. More...
 
void update (const T &rhs)
 
T & getLocal ()
 Returns a reference to the local value of T. More...
 
T & reduce ()
 Returns the final reduction value. More...
 
void reset ()
 
- Public Member Functions inherited from galois::identity_value_zero< T >
constexpr T operator() () const
 

Additional Inherited Members

- Public Types inherited from galois::Reducible< T, std::plus< T >, identity_value_zero< T > >
using value_type = T
 

Detailed Description

template<typename T>
class galois::GAccumulator< T >

Accumulator for T where accumulation is plus.

Constructor & Destructor Documentation

template<typename T>
galois::GAccumulator< T >::GAccumulator ( )
inline

Member Function Documentation

template<typename T>
GAccumulator& galois::GAccumulator< T >::operator+= ( const T &  rhs)
inline
template<typename T>
GAccumulator& galois::GAccumulator< T >::operator-= ( const T &  rhs)
inline

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