Abstract base-class for Time/database function objects. More...
#include <OpenFOAM/functionObject.H>
Abstract base-class for Time/database function objects.
Definition at line 57 of file functionObject.H.
Classes | |
class | iNew |
Return a pointer to a new functionObject created on freestore. More... |
Public Member Functions | |
virtual const word & | type () const =0 |
Runtime type information. | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &t, const dictionary &dict),(name, t, dict)) | |
functionObject (const word &name) | |
Construct from components. | |
autoPtr< functionObject > | clone () const |
Return clone. | |
virtual | ~functionObject () |
virtual const word & | name () const |
Name. | |
virtual bool | start ()=0 |
Called at the start of the time-loop. | |
virtual bool | execute ()=0 |
Called at each ++ or += of the time-loop. | |
virtual bool | end () |
Called when Time::run() determines that the time-loop exits. | |
virtual bool | read (const dictionary &)=0 |
Read and set the function object if its data have changed. |
Static Public Member Functions | |
static autoPtr< functionObject > | New (const word &name, const Time &, const dictionary &) |
Select from dictionary, based on its "type" entry. |
Static Public Attributes | |
static int | debug |
functionObject | ( | const word & | name | ) |
Construct from components.
Definition at line 38 of file functionObject.C.
|
virtual |
Definition at line 101 of file functionObject.C.
|
pure virtual |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
functionObject | , | ||
dictionary | , | ||
(const word &name, const Time &t, const dictionary &dict) | , | ||
(name, t, dict) | |||
) |
|
inline |
|
static |
Select from dictionary, based on its "type" entry.
Definition at line 47 of file functionObject.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), Foam::name(), Foam::nl, and dlLibraryTable::open().
Referenced by functionObject::iNew::operator()(), and functionObjectList::read().
|
virtual |
Name.
Definition at line 107 of file functionObject.C.
|
pure virtual |
Called at the start of the time-loop.
Implemented in OutputFilterFunctionObject< OutputFilter >.
Referenced by functionObjectList::read().
|
pure virtual |
Called at each ++ or += of the time-loop.
Implemented in OutputFilterFunctionObject< OutputFilter >.
|
virtual |
Called when Time::run() determines that the time-loop exits.
By default it simply calls execute().
Reimplemented in OutputFilterFunctionObject< OutputFilter >.
Definition at line 113 of file functionObject.C.
|
pure virtual |
Read and set the function object if its data have changed.
Implemented in OutputFilterFunctionObject< OutputFilter >.
Referenced by functionObjectList::read().
|
static |
Definition at line 79 of file functionObject.H.