71 #ifndef functionObjects_codedFunctionObject_H 72 #define functionObjects_codedFunctionObject_H 86 class codedFunctionObject
88 public functionObject,
117 virtual dlLibraryTable&
libs()
const;
120 virtual void prepare(dynamicCode&,
const dynamicCodeContext&)
const;
172 virtual bool write();
functionObject & redirectFunctionObject() const
Dynamically compiled functionObject.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const Time & time_
Reference to the time database.
codedFunctionObject(const word &name, const Time &time, const dictionary &dict)
Construct from Time and dictionary.
virtual void clearRedirect() const
Clear any redirected objects.
virtual const wordList & codeKeys() const
Get the keywords associated with source code.
void operator=(const codedFunctionObject &)=delete
Disallow default bitwise assignment.
Abstract base-class for Time/database function objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
autoPtr< functionObject > redirectFunctionObjectPtr_
Underlying functionObject.
virtual const dictionary & codeDict() const
Get the dictionary to initialize the codeContext.
virtual dlLibraryTable & libs() const
Get the loaded dynamic libraries.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
Provides a general interface to enable dynamic code compilation.
A class for handling words, derived from string.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
static const wordList codeKeys_
The keywords associated with source code.
virtual ~codedFunctionObject()
Destructor.
List< word > wordList
A List of words.
TypeName("coded")
Runtime type information.
dictionary dict_
Input dictionary.
virtual bool execute()
Called at each ++ or += of the time-loop.
virtual bool write()
Called at each ++ or += of the time-loop.
virtual string description() const
Return a description (type + name) for the output.