Go to the documentation of this file.
36 #ifndef bufferedAccumulator_H
37 #define bufferedAccumulator_H
63 public List< Field<Type> >
102 const label bufferingInterval
139 const label bufferingInterval
150 friend Ostream& operator<< <Type>
void operator=(const bufferedAccumulator< Type > &)
Field< Type > averaged() const
pTraits< Type >::cmptType cmptType
Component type.
label bufferLength() const
void accumulateAndResetBuffer(const label b)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void setSizes(const label nBuffers, const label bufferLength, const label bufferingInterval)
Field< Type > & accumulationBuffer()
label averagesTaken() const
label addToBuffers(const List< Type > &valuesToAdd)
~bufferedAccumulator()
Destructor.
List< label > bufferOffsets_
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
static const char *const typeName
const List< label > & bufferOffsets() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bufferedAccumulator()
Construct null.