ENH: add remove objects handling in timeFunctionObject and regionFunctionObject

- makes it easier to implement functionObject or field object removal
This commit is contained in:
Mark Olesen
2019-02-08 17:47:45 +01:00
parent 42f1470bb4
commit 7c21f42b6d
19 changed files with 83 additions and 48 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2016 OpenFOAM Foundation
@ -57,7 +57,7 @@ namespace functionObjects
{
/*---------------------------------------------------------------------------*\
Class functionObjects::regionFunctionObject Declaration
Class regionFunctionObject Declaration
\*---------------------------------------------------------------------------*/
class regionFunctionObject
@ -149,6 +149,9 @@ protected:
//- Clear field from the (sub) objectRegistry if present
bool clearObject(const word& fieldName);
//- Clear fields from the (sub) objectRegistry if present
void clearObjects(const wordList& objNames);
//- No copy construct
regionFunctionObject(const regionFunctionObject&) = delete;