38#ifndef Foam_rawIOField_H
39#define Foam_rawIOField_H
159 using Field<Type>::operator=;
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
constexpr Field() noexcept
Default construct.
readOption
Enumeration defining read preferences.
@ NO_READ
Nothing to be read.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
rawIOField(const rawIOField &)=default
Default copy construct.
TypeName("rawField")
Runtime type information.
const Field< Type > & field() const noexcept
The field content.
virtual bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
bool hasAverage() const noexcept
Has an average value.
static Field< Type > readContents(const IOobject &io)
Read and return contents. The IOobject will not be registered.
void setAverage(const Type &val)
Set an average value.
const Type & average() const noexcept
The average value (if any).
virtual ~rawIOField()=default
Destructor.
void clearAverage()
Clear average value.
Field< Type > content_type
The underlying content type.
Field< Type > & field() noexcept
The field content, non-const access.
regIOobject(const IOobject &io, const bool isTimeObject=false)
Construct from IOobject. The optional flag adds special handling if the object is the top-level regIO...
OBJstream os(runTime.globalPath()/outputName)
static constexpr const zero Zero
Global zero (0).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.