Commit 89e17595 authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent e0e457bd
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment