39 template<
class ... Args>
69 template<
class ... Args>
80 ptr_ =
new Type(io,
args ...);
99 <<
"Attempted access of invalid object"
132 <<
"Attempted access of invalid object"
bool found(const Key &) const
Return true if hashedEntry is found in table.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const objectRegistry & db() const
Return the local objectRegistry.
const word & name() const
Return name.
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
void set(const IOobject &io, const Args &... args)
Set the object.
sharedRegIOobject()
Default construct.
~sharedRegIOobject()
Destructor.
bool valid() const
Is this object set?
const Type & operator()() const
Return a reference to the object.
void clear()
Clear the object.
Type & ref() const
Return a reference to the object.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool valid(const PtrList< ModelType > &l)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Foam::argList args(argc, argv)