42#ifndef Foam_CompactIOList_H
43#define Foam_CompactIOList_H
73 bool readIOcontents();
80 bool overflows()
const;
139 const bool writeOnProc
149 using List<
T>::operator=;
A List 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.
void operator=(CompactIOList< T > &&rhs)
Move assignment of entries.
List< T > content_type
The underlying content type.
TypeName("CompactList")
Runtime type information.
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).
CompactIOList(const IOobject &io, const label len)
Construct from IOobject and default length of CompactIOList.
virtual ~CompactIOList()=default
Destructor.
CompactIOList(const IOobject &io, Foam::zero)
Construct from IOobject and zero size (if not read).
static List< T > readContents(const IOobject &io)
Read and return contents. The IOobject will not be registered.
CompactIOList(const IOobject &io)
Construct from IOobject. Will be zero size if not read.
CompactIOList(const IOobject &io, const UList< T > &content)
Construct from IOobject and List content.
Istream & readCompact(Istream &is)
Read as offsets/packed-values and transcribe into *this.
void operator=(const CompactIOList< T > &rhs)
Copy assignment of entries.
CompactIOList(const IOobject &io, List< T > &&content)
Construct by transferring the List content.
CompactIOList(const CompactIOList &)=default
Default copy construct.
static label readContentsSize(const IOobject &io)
Read and return content size, -1 if not read.
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)....
void operator=(const UList< T > &list)
Assignment to UList operator. Takes linear time.
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)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.