regionFunctionObject: Moved the field/object maintenance functions from fvMeshFunctionObject into regionFunctionObject

This commit is contained in:
Henry Weller
2016-05-25 16:26:57 +01:00
parent 0e3f655865
commit 1de91282cd
21 changed files with 141 additions and 139 deletions

View File

@ -76,6 +76,32 @@ protected:
Switch log_;
// Protected member functions
//- Find field in the objectRegistry
template<class ObjectType>
bool foundObject(const word& fieldName) const;
//- Lookup field from the objectRegistry
template<class ObjectType>
const ObjectType& lookupObject(const word& fieldName) const;
//- Store the given field in the objectRegistry under the given name
template<class ObjectType>
bool store
(
word& fieldName,
const tmp<ObjectType>& tfield,
bool cacheable = false
);
//- Write field if present in objectRegistry
bool writeObject(const word& fieldName);
//- Clear field from the objectRegistry if present
bool clearObject(const word& fieldName);
private:
// Private Member Functions
@ -132,6 +158,12 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#include "regionFunctionObjectTemplates.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //