71 #ifndef codedFunctionObject_functionObject_H
72 #define codedFunctionObject_functionObject_H
86 class codedFunctionObject
88 public functionObject,
100 mutable autoPtr<functionObject> redirectFunctionObjectPtr_;
106 virtual void prepare(dynamicCode&,
const dynamicCodeContext&)
const;
109 void updateLibrary(
const dictionary&
dict);
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.