71 #ifndef functionObjects_codedFunctionObject_H
72 #define functionObjects_codedFunctionObject_H
86 class codedFunctionObject
88 public functionObject,
94 mutable autoPtr<functionObject> redirectFunctionObjectPtr_;
103 virtual wordList codeDictVars()
const;
106 virtual void prepare(dynamicCode&,
const dynamicCodeContext&)
const;
109 virtual void clearRedirect()
const;
152 virtual bool write();
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Provides a general interface to enable dynamic code compilation.
virtual ~codedFunctionObject()
Destructor.
virtual wordList fields() const
Return the list of fields required.
TypeName("coded")
Runtime type information.
void operator=(const codedFunctionObject &)=delete
Disallow default bitwise assignment.
codedFunctionObject(const word &name, const Time &time, const dictionary &dict)
Construct from Time and dictionary.
virtual bool execute()
Called at each ++ or += of the time-loop.
virtual bool write()
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 &)
Read and set the function object if its data have changed.
A list of keyword definitions, which are a keyword followed by any number of values (e....
functionObject(const word &name, const Time &runTime)
Construct from components.
const word & name() const
Return the name of this functionObject.
A class for handling words, derived from string.
List< word > wordList
A List of words.