36 if (isReadRequired() || (isReadOptional() && headerOk()))
39 Istream& is = readStream(typeName, readOnProc);
61 warnNoRereading<IOField<Type>>();
73 warnNoRereading<IOField<Type>>();
75 readIOcontents(readOnProc);
85 warnNoRereading<IOField<Type>>();
97 warnNoRereading<IOField<Type>>();
99 if (!readIOcontents())
112 warnNoRereading<IOField<Type>>();
114 if (!readIOcontents())
127 warnNoRereading<IOField<Type>>();
140 const bool reuse = tfld.movable();
147 if (!readIOcontents() && !reuse)
179 IOField<Type> reader(rio);
190 os << static_cast<const Field<Type>&>(*this);
198 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.
IOField(const IOField &)=default
Default copy construct.
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 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.
static Field< Type > readContents(const IOobject &io)
Read and return contents. The IOobject will not be registered.
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)