mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: function object: added helper function to return a local scope name
This commit is contained in:
@ -39,6 +39,14 @@ namespace Foam
|
|||||||
bool Foam::functionObject::postProcess(false);
|
bool Foam::functionObject::postProcess(false);
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Foam::word Foam::functionObject::scopedName(const word& name) const
|
||||||
|
{
|
||||||
|
return name_ + ":" + name;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::functionObject::functionObject(const word& name)
|
Foam::functionObject::functionObject(const word& name)
|
||||||
|
|||||||
@ -154,6 +154,14 @@ class functionObject
|
|||||||
void operator=(const functionObject&) = delete;
|
void operator=(const functionObject&) = delete;
|
||||||
|
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
// Protected Member Functions
|
||||||
|
|
||||||
|
//- Return a scoped name, e.g. used to construct local field names
|
||||||
|
word scopedName(const word& name) const;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
|
|||||||
Reference in New Issue
Block a user