34bool Foam::IOMap<T>::readIOcontents()
36 if (isReadRequired() || (isReadOptional() && headerOk()))
41 readStream(typeName) >> *
this;
67 if (!readIOcontents())
79 if (!readIOcontents())
110 rio.globalObject(
true);
112 IOMap<T> reader(rio);
void transfer(HashTable< T, label, Hash > &rhs)
void resize(label newCapacity)
label size() const noexcept
IOMap(const IOMap &)=default
Default copy construct.
bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
static Map< T > readContents(const IOobject &io)
Read and return contents. The IOobject will not be registered.
@ NO_REGISTER
Do not request registration (bool: false).
bool globalObject() const noexcept
True if object is treated the same for all processors.
readOption readOpt() const noexcept
Get the read option.
@ MUST_READ
Reading required.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void resetHeader(const word &newName=word::null)
Clear various bits (headerClassName, note, sizeof...) that would be obtained when reading from a file...
A HashTable to objects of type <T> with a label key.
constexpr Map() noexcept=default
Default construct: empty without allocation (capacity=0).
void operator=(const this_type &rhs)
Copy assignment.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
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...
OBJstream os(runTime.globalPath()/outputName)