38#ifndef bufferedAccumulator_H
39#define bufferedAccumulator_H
65 public List<Field<Type>>
71 List<label> bufferOffsets_;
78 inline const Field<Type>& accumulationBuffer()
const;
80 void accumulateAndResetBuffer(
const label
b);
104 const label bufferingInterval
141 const label bufferingInterval
152 friend Ostream& operator<< <Type>
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Field< Type > averaged() const
bufferedAccumulator()
Construct null.
void operator=(const bufferedAccumulator< Type > &)
label addToBuffers(const List< Type > &valuesToAdd)
pTraits< Type >::cmptType cmptType
Component type.
~bufferedAccumulator()
Destructor.
label bufferLength() const
const List< label > & bufferOffsets() const
void setSizes(const label nBuffers, const label bufferLength, const label bufferingInterval)
label averagesTaken() const
static const char *const typeName
A traits class, which is primarily used for primitives and vector-space.