42 #ifndef Foam_CompactIOField_H 43 #define Foam_CompactIOField_H 56 template<
class T>
Ostream& operator<<(Ostream&, const CompactIOField<T>&);
73 bool readIOcontents(
bool readOnProc =
true);
77 label readIOsize(
bool readOnProc =
true);
80 bool overflows()
const;
141 const bool writeOnProc
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using stream options. Checks for overflow in binary.
CompactIOField(const CompactIOField &)=default
Default copy construct.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual bool writeData(Ostream &os) const
Write as plain or compact content (depends on stream format)
Istream & readCompact(Istream &is)
Read as offsets/packed-values and transcribe into *this.
A simple container for options an IOstream can normally have.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Istream & operator>>(Istream &, directionInfo &)
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.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void operator=(const Field< Type > &)
Copy assignment.
void operator=(const CompactIOField< T > &rhs)
Copy assignment of entries.
A Field of objects of type <T> with automated input and output using a compact storage. Behaves like IOField except when binary output in case it writes a CompactListList.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
static label readContentsSize(const IOobject &io)
Read and return content size, -1 if not read.
Field< T > content_type
The underlying content type.
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual ~CompactIOField()=default
Destructor.
TypeName("FieldField")
Runtime type information.