ENH: added timeFunctionObject virtual class in inheritance hierarchy

- simply a functionObject with an additional Time reference, which is
  a combination frequently used by concrete functionObjects
This commit is contained in:
Mark Olesen
2019-01-25 08:56:21 +01:00
parent 8433ddee0e
commit ad7f29466a
27 changed files with 225 additions and 178 deletions

View File

@ -56,7 +56,7 @@ SourceFiles
#ifndef functionObjects_timeControl_H
#define functionObjects_timeControl_H
#include "functionObject.H"
#include "timeFunctionObject.H"
#include "dictionary.H"
#include "timeControl.H"
@ -68,12 +68,12 @@ namespace functionObjects
{
/*---------------------------------------------------------------------------*\
Class timeControl Declaration
Class functionObjects::timeControl Declaration
\*---------------------------------------------------------------------------*/
class timeControl
:
public functionObject
public functionObjects::timeFunctionObject
{
public:
@ -96,9 +96,6 @@ private:
// Private data
//- Reference to the time database
const Time& time_;
//- Input dictionary
dictionary dict_;
@ -198,8 +195,8 @@ public:
timeControl
(
const word& name,
const Time&,
const dictionary&
const Time& runTime,
const dictionary& dict
);
@ -207,9 +204,6 @@ public:
// Access
//- Return time database
inline const Time& time() const;
//- Return the input dictionary
inline const dictionary& dict() const;