39 warnNoRereading<GlobalIOList<Type>>();
41 readHeaderOk(IOstreamOption::BINARY, typeName);
51 warnNoRereading<GlobalIOList<Type>>();
53 readHeaderOk(IOstreamOption::BINARY, typeName);
63 warnNoRereading<GlobalIOList<Type>>();
65 if (!readHeaderOk(IOstreamOption::BINARY, typeName))
76 const UList<Type>& content
82 warnNoRereading<GlobalIOList<Type>>();
84 if (!readHeaderOk(IOstreamOption::BINARY, typeName))
101 warnNoRereading<GlobalIOList<Type>>();
105 readHeaderOk(IOstreamOption::BINARY, typeName);
114 IOobject rio(
io, IOobjectOption::NO_REGISTER);
115 if (rio.readOpt() == IOobjectOption::READ_MODIFIED)
117 rio.readOpt(IOobjectOption::MUST_READ);
121 rio.globalObject(
true);
123 GlobalIOList<Type> reader(rio);
142 os << static_cast<const List<Type>&>(*this);
GlobalIOList(const GlobalIOList &)=default
Default copy construct.
patchWriters resize(patchIds.size())
void transfer(List< Type > &list)
Transfer the contents of the argument List into this list and annul the argument list.
void operator=(const GlobalIOList< Type > &rhs)
Copy assignment of entries.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual bool readData(Istream &is)
The readData method for regIOobject read operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
IOList with global data (so optionally read from master)
bool good() const noexcept
True if next operation might succeed.
bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
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 ...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
static List< Type > readContents(const IOobject &io)
Read and return contents. The IOobject is never registered.
Defines the attributes of an object for which implicit objectRegistry management is supported...