39 #ifndef functionObjects_regionFunctionObject_H 40 #define functionObjects_regionFunctionObject_H 52 namespace functionObjects
78 template<
class ObjectType>
82 template<
class ObjectType>
86 template<
class ObjectType>
90 template<
class ObjectType>
94 template<
class ObjectType>
97 const word& fieldName,
99 bool cacheable =
false Specialization of Foam::functionObject for a region and providing a reference to the region Foam::obj...
bool writeObject(const word &fieldName)
Write field if present in objectRegistry.
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Abstract base-class for Time/database functionObjects.
const ObjectType & lookupObject(const word &fieldName) const
Lookup object from the objectRegistry.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual bool read(const dictionary &)
Read optional controls.
A class for handling words, derived from string.
TypeName("regionFunctionObject")
Runtime type information.
virtual ~regionFunctionObject()
Destructor.
bool foundObject(const word &fieldName) const
Find field in the objectRegistry.
bool clearObject(const word &fieldName)
Clear field from the objectRegistry if present.
regionFunctionObject(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
bool store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
const Time & time_
Reference to the Time.
ObjectType & lookupObjectRef(const word &fieldName)
Lookup non-const object reference from the objectRegistry.
void operator=(const regionFunctionObject &)=delete
Disallow default bitwise assignment.
const objectRegistry & obr_
Reference to the region objectRegistry.
A class for managing temporary objects.
Registry of regIOobjects.