ENH: add support for an output object registry for function objects
This commit is contained in:
@ -39,4 +39,20 @@ Foam::functionObjects::timeFunctionObject::timeFunctionObject
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
Foam::objectRegistry&
|
||||
Foam::functionObjects::timeFunctionObject::storedObjects()
|
||||
{
|
||||
return const_cast<Time&>(time_).functionObjects().storedObjects();
|
||||
}
|
||||
|
||||
|
||||
const Foam::objectRegistry&
|
||||
Foam::functionObjects::timeFunctionObject::storedObjects() const
|
||||
{
|
||||
return time_.functionObjects().storedObjects();
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -92,6 +92,14 @@ public:
|
||||
{
|
||||
return time_;
|
||||
}
|
||||
|
||||
//- Write access to the output objects ("functionObjectObjects")
|
||||
//- registered on Time
|
||||
objectRegistry& storedObjects();
|
||||
|
||||
//- Const access to the output objects ("functionObjectObjects")
|
||||
//- registered on Time
|
||||
const objectRegistry& storedObjects() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user