55 contextObjects_.set(
name, objptr);
111template<
class ObjType>
116 return dynamic_cast<const ObjType*
>(this->cfindContextIOobject(
name));
A HashTable similar to std::unordered_map.
const word & name() const noexcept
Return the object name.
void removeContextObject(const word &name)
Remove the object from the context.
bool hasContextObjects() const
True if any context fields are defined.
void addContextObject(const word &name, const regIOobject *)
Add the object to the context.
const ObjType * cfindContextObject(const word &name) const
Find context field object of specified type.
const contextObjectTableType & contextObjects() const noexcept
Read access to the object context.
contextObjectTableType contextObjects_
Externally defined context fields.
const regIOobject * cfindContextIOobject(const word &name) const
Find named context field, if it exists.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A class for handling words, derived from Foam::string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.