42#ifndef Foam_CompactIOField_H
43#define Foam_CompactIOField_H
73 bool readIOcontents(
bool readOnProc =
true);
77 label readIOsize(
bool readOnProc =
true);
80 bool overflows()
const;
141 const bool writeOnProc
151 using Field<
T>::operator=;
A Field of objects of type <T> with automated input and output using a compact storage....
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using stream options. Checks for overflow in binary.
CompactIOField(const IOobject &io, const label len)
Construct from IOobject and size (if not read).
static Field< T > readContents(const IOobject &io)
Read and return contents. The IOobject is never registered.
Ostream & writeCompact(Ostream &os) const
Write as offsets/packed-values.
virtual bool writeData(Ostream &os) const
Write as plain or compact content (depends on stream format).
CompactIOField(const IOobject &io, const UList< T > &content)
Construct from IOobject and a List/Field content.
virtual ~CompactIOField()=default
Destructor.
CompactIOField(const IOobject &io, Field< T > &&content)
Construct by transferring the Field contents.
void operator=(CompactIOField< T > &&rhs)
Move assignment of entries.
CompactIOField(const IOobject &io, const bool readOnProc)
Construct from IOobject, with local processor conditional reading.
TypeName("FieldField")
Runtime type information.
void operator=(const CompactIOField< T > &rhs)
Copy assignment of entries.
CompactIOField(const IOobject &io)
Construct from IOobject. Will be zero size if not read.
Istream & readCompact(Istream &is)
Read as offsets/packed-values and transcribe into *this.
CompactIOField(const IOobject &io, Foam::zero)
Construct from IOobject and zero size (if not read).
Field< T > content_type
The underlying content type.
CompactIOField(const CompactIOField &)=default
Default copy construct.
static label readContentsSize(const IOobject &io)
Read and return content size, -1 if not read.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors).
void operator=(const Field< Type > &)
Copy assignment.
constexpr Field() noexcept
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A simple container for options an IOstream can normally have.
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,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
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...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.