34 template<
class>
class MeshObjectType,
46 MeshObjectType<Mesh>(*this),
54 template<
class>
class MeshObjectType,
74 MeshObjectType<Mesh>(*this),
82 template<
class>
class MeshObjectType,
105 template<
class>
class MeshObjectType,
117 return mesh.
db().objectRegistry::template lookupObjectRef<Type>
124 if (meshObjects::debug)
127 <<
"&) : constructing " <<
name
132 Type* objectPtr =
new Type(
name,
mesh);
142 template<
class>
class MeshObjectType,
153 return mesh.
db().objectRegistry::template lookupObjectRef<Type>
160 if (meshObjects::debug)
167 Type* objectPtr =
new Type(
mesh);
177 template<
class>
class MeshObjectType,
181 template<
class... Args>
191 return mesh.
db().objectRegistry::template lookupObjectRef<Type>
198 if (meshObjects::debug)
201 <<
"&, const Data1&) : constructing " <<
name
216 template<
class>
class MeshObjectType,
220 template<
class... Args>
229 return mesh.
db().objectRegistry::template lookupObjectRef<Type>
236 if (meshObjects::debug)
243 Type* objectPtr =
new Type(
mesh,
args...);
255 template<
class>
class MeshObjectType,
271 template<
class>
class MeshObjectType,
286 template<
class>
class MeshObjectType,
297 return mesh.
db().objectRegistry::template foundObject<Type>(
name);
304 template<
class>
class MeshObjectType,
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
DemandDrivenMeshObject(const IOobject &io, const Mesh &mesh)
Construct from mesh and IOobject.
virtual ~DemandDrivenMeshObject()
static bool found(const word &name, const Mesh &mesh)
Return true if the DemandDrivenMeshObject with the given name.
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...
virtual const objectRegistry & db() const
Return the object registry - resolve conflict polyMesh/lduMesh.
const word & name() const
Return reference to name.
void release()
Release ownership of this object from its registry.
void store()
Transfer ownership of this object to its registry.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Ostream & endl(Ostream &os)
Add newline and flush stream.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
prefixOSstream Pout(cout, "Pout")
Foam::argList args(argc, argv)