Grappa  r3821, hash 22cd626d567a91ead5b23302066d1e9469f45c66
ReducerImpl< T, ReduceOp > Class Template Reference

Base class for Reducer implementing some operations common to all specializations. More...

#include <Reducer.hpp>

Public Member Functions

 ReducerImpl ()
 
 operator T () const
 Read out value; does expensive global reduce. More...
 
void operator= (const T &v)
 Globally set the value; expensive global synchronization. More...
 
void reset ()
 Globally reset to default value for the type. More...
 

Protected Attributes

local_value
 

Detailed Description

template<typename T, T(*)(const T &, const T &) ReduceOp>
class ReducerImpl< T, ReduceOp >

Base class for Reducer implementing some operations common to all specializations.

Definition at line 239 of file Reducer.hpp.

Constructor & Destructor Documentation

template<typename T, T(*)(const T &, const T &) ReduceOp>
ReducerImpl< T, ReduceOp >::ReducerImpl ( )
inline

Definition at line 243 of file Reducer.hpp.

Member Function Documentation

template<typename T, T(*)(const T &, const T &) ReduceOp>
ReducerImpl< T, ReduceOp >::operator T ( ) const
inline

Read out value; does expensive global reduce.

Called implicitly when the Reducer is used as the underlying type, or by an explicit cast operation.

Definition at line 249 of file Reducer.hpp.

template<typename T, T(*)(const T &, const T &) ReduceOp>
void ReducerImpl< T, ReduceOp >::operator= ( const T &  v)
inline

Globally set the value; expensive global synchronization.

Definition at line 252 of file Reducer.hpp.

template<typename T, T(*)(const T &, const T &) ReduceOp>
void ReducerImpl< T, ReduceOp >::reset ( )
inline

Globally reset to default value for the type.

Definition at line 255 of file Reducer.hpp.

Member Data Documentation

template<typename T, T(*)(const T &, const T &) ReduceOp>
T ReducerImpl< T, ReduceOp >::local_value
protected

Definition at line 241 of file Reducer.hpp.


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