mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user