Galois
|
Accumulator for T where accumulation is plus. More...
#include <Reduction.h>
Public Member Functions | |
GAccumulator () | |
GAccumulator & | operator+= (const T &rhs) |
GAccumulator & | operator-= (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 |
Accumulator for T where accumulation is plus.
|
inline |
|
inline |
|
inline |