OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

functionObject Class Reference

Abstract base-class for Time/database function objects. More...

Inheritance diagram for functionObject:
Collaboration diagram for functionObject:

List of all members.


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

Detailed Description

Abstract base-class for Time/database function objects.

See also:
Foam::OutputFilterFunctionObject
Source files

Definition at line 52 of file functionObject.H.


Constructor & Destructor Documentation

functionObject ( const word &  name  ) 

Construct from components.

Definition at line 30 of file functionObject.C.

~functionObject (  )  [virtual]

Definition at line 93 of file functionObject.C.


Member Function Documentation

virtual const word& type (  )  const [pure virtual]

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
functionObject  ,
dictionary  ,
(const word &name, const Time &t, const dictionary &dict)  ,
(name, t, dict)   
)

autoPtr<functionObject> clone (  )  const [inline]

Return clone.

Definition at line 95 of file functionObject.H.

Foam::autoPtr< Foam::functionObject > New ( const word &  name,
const Time &  t,
const dictionary &  functionDict 
) [static]

Select from dictionary, based on its "type" entry.

Definition at line 39 of file functionObject.C.

const Foam::word & name (  )  const [virtual]

Name.

Definition at line 99 of file functionObject.C.

virtual bool start (  )  [pure virtual]

Called at the start of the time-loop.

Implemented in OutputFilterFunctionObject< OutputFilter >.

virtual bool execute (  )  [pure virtual]

Called at each ++ or += of the time-loop.

Implemented in OutputFilterFunctionObject< OutputFilter >.

Referenced by iNew::operator()().

Here is the caller graph for this function:

bool end (  )  [virtual]

Called when Time::run() determines that the time-loop exits.

By default it simply calls execute().

Reimplemented in OutputFilterFunctionObject< OutputFilter >.

Definition at line 105 of file functionObject.C.

virtual bool read ( const dictionary &   )  [pure virtual]

Read and set the function object if its data have changed.

Implemented in OutputFilterFunctionObject< OutputFilter >.


Member Data Documentation

int debug [static]

Definition at line 74 of file functionObject.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd