ENH: function object: added helper function to return a local scope name

This commit is contained in:
Andrew Heather
2017-06-26 13:23:45 +01:00
parent e0e457bd7d
commit 89e175958f
2 changed files with 16 additions and 0 deletions

View File

@ -39,6 +39,14 @@ namespace Foam
bool Foam::functionObject::postProcess(false);
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
Foam::word Foam::functionObject::scopedName(const word& name) const
{
return name_ + ":" + name;
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::functionObject::functionObject(const word& name)

View File

@ -154,6 +154,14 @@ class functionObject
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:
//- Runtime type information