36 Istream& is = readStream(typeName, readOnProc);
49 if (isReadRequired() || (isReadOptional() && headerOk()))
67 warnNoRereading<IOField<Type>>();
79 warnNoRereading<IOField<Type>>();
83 readFromStream(readOnProc);
88 readFromStream(readOnProc && haveFile);
99 warnNoRereading<IOField<Type>>();
111 warnNoRereading<IOField<Type>>();
126 warnNoRereading<IOField<Type>>();
141 warnNoRereading<IOField<Type>>();
154 const bool reuse = tfld.movable();
161 if (!readContents() && !reuse)
193 IOField<Type> reader(rio);
204 os << static_cast<const Field<Type>&>(*this);
212 os << contentRef_.cref();
void resize(const label len)
Adjust allocated size of list.
void transfer(List< Type > &list)
Transfer the contents of the argument List into this list and annul the argument list.
IOFieldRef()=delete
No default construct.
bool headerOk()
Read and check header info. Does not check the headerClassName.
IOField(const IOField &)=default
Default copy construct.
bool isReadOptional() const noexcept
True if (LAZY_READ) bits are set [same as READ_IF_PRESENT].
virtual bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
Generic templated field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void operator=(const IOField< Type > &rhs)
Copy assignment of entries.
OBJstream os(runTime.globalPath()/outputName)
void operator=(const Field< Type > &)
Copy assignment.
bool isReadRequired() const noexcept
True if (MUST_READ | READ_MODIFIED) bits are set.
bool good() const noexcept
True if next operation might succeed.
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 ...
virtual bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
A primitive field of type <T> with automated input and output.
Do not request registration (bool: false)