IODA
ioda::InefficientDistributionAccumulator< T > Class Template Reference

Implementation of the Accumulator interface suitable for the InefficientDistribution. More...

#include <InefficientDistributionAccumulator.h>

Inheritance diagram for ioda::InefficientDistributionAccumulator< T >:
Collaboration diagram for ioda::InefficientDistributionAccumulator< T >:

Public Member Functions

 InefficientDistributionAccumulator (const T &)
 
void addTerm (std::size_t, const T &term) override
 Increment the sum with the contribution term of location loc held on the current PE. More...
 
T computeResult () const override
 Return the sum of contributions associated with locations held on all PEs (each taken into account only once). More...
 
- Public Member Functions inherited from ioda::Accumulator< T >
virtual ~Accumulator ()
 

Private Attributes

T localResult_
 

Detailed Description

template<typename T>
class ioda::InefficientDistributionAccumulator< T >

Implementation of the Accumulator interface suitable for the InefficientDistribution.

Definition at line 20 of file InefficientDistributionAccumulator.h.

Constructor & Destructor Documentation

◆ InefficientDistributionAccumulator()

template<typename T >
ioda::InefficientDistributionAccumulator< T >::InefficientDistributionAccumulator ( const T &  )
inlineexplicit

Definition at line 22 of file InefficientDistributionAccumulator.h.

Member Function Documentation

◆ addTerm()

template<typename T >
void ioda::InefficientDistributionAccumulator< T >::addTerm ( std::size_t  loc,
const T &  term 
)
inlineoverridevirtual

Increment the sum with the contribution term of location loc held on the current PE.

Implements ioda::Accumulator< T >.

Definition at line 26 of file InefficientDistributionAccumulator.h.

◆ computeResult()

template<typename T >
T ioda::InefficientDistributionAccumulator< T >::computeResult ( ) const
inlineoverridevirtual

Return the sum of contributions associated with locations held on all PEs (each taken into account only once).

Implements ioda::Accumulator< T >.

Definition at line 30 of file InefficientDistributionAccumulator.h.

Member Data Documentation

◆ localResult_

template<typename T >
T ioda::InefficientDistributionAccumulator< T >::localResult_
private

Definition at line 35 of file InefficientDistributionAccumulator.h.


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