40 else if (isReadOptional())
54 Istream& is = readStream(typeName, readOnProc);
73 warnNoRereading<IOField<Type>>();
85 warnNoRereading<IOField<Type>>();
87 readIOcontents(readOnProc);
97 warnNoRereading<IOField<Type>>();
109 warnNoRereading<IOField<Type>>();
111 if (!readIOcontents())
124 warnNoRereading<IOField<Type>>();
126 if (!readIOcontents())
139 warnNoRereading<IOField<Type>>();
152 const bool reuse = tfld.movable();
159 if (!readIOcontents() && !reuse)
191 IOField<Type> reader(rio);
202 os << static_cast<const Field<Type>&>(*this);
210 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)