102 #ifndef DemandDrivenMeshObject_H
103 #define DemandDrivenMeshObject_H
119 template<
class>
class MeshObjectType,
121 class RegIOobject = regIOobject
126 public MeshObjectType<Mesh>
163 static Type&
New(
const Mesh&
mesh);
167 template<
class... Args>
177 template<
class... Args>
200 const Mesh&
mesh()
const
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
const Mesh & mesh() const
DemandDrivenMeshObject(const IOobject &io, const Mesh &mesh)
Construct from mesh and IOobject.
virtual ~DemandDrivenMeshObject()
virtual bool writeData(Foam::Ostream &) const
Pure virtual writaData function.
static bool found(const word &name, const Mesh &mesh)
Return true if the DemandDrivenMeshObject with the given name.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write) const
Write using given format, version and compression.
static Type & New(const word &name, const Mesh &mesh)
Construct and return the named DemandDrivenMeshObject.
virtual const word & type() const
Runtime type information.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
streamFormat
Enumeration for the format of data in the stream.
compressionType
Enumeration for the format of data in the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool write(const bool write=true) const
Write using setting from DB.
A class for handling words, derived from string.
Foam::argList args(argc, argv)