|
IODA
|
Implementation of the Accumulator interface suitable for the PairOfDistributions. More...
#include <PairOfDistributionsAccumulator.h>


Public Member Functions | |
| PairOfDistributionsAccumulator (std::unique_ptr< Accumulator< T >> firstAccumulator, std::unique_ptr< Accumulator< T >> secondAccumulator, std::size_t firstNumLocs) | |
| void | addTerm (std::size_t loc, 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 | |
| std::unique_ptr< Accumulator< T > > | firstAccumulator_ |
| std::unique_ptr< Accumulator< T > > | secondAccumulator_ |
| std::size_t | firstNumLocs_ |
Implementation of the Accumulator interface suitable for the PairOfDistributions.
Definition at line 21 of file PairOfDistributionsAccumulator.h.
|
inline |
Definition at line 23 of file PairOfDistributionsAccumulator.h.
|
inlineoverridevirtual |
Increment the sum with the contribution term of location loc held on the current PE.
Implements ioda::Accumulator< T >.
Definition at line 31 of file PairOfDistributionsAccumulator.h.
|
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 38 of file PairOfDistributionsAccumulator.h.
|
private |
Definition at line 43 of file PairOfDistributionsAccumulator.h.
|
private |
Definition at line 45 of file PairOfDistributionsAccumulator.h.
|
private |
Definition at line 44 of file PairOfDistributionsAccumulator.h.