71 #ifndef functionObjects_codedFunctionObject_H 72 #define functionObjects_codedFunctionObject_H 86 class codedFunctionObject
88 public functionObject,
89 public CodedBase<functionObject>
97 mutable autoPtr<functionObject> redirectFunctionObjectPtr_;
103 virtual void prepare(dynamicCode&,
const dynamicCodeContext&)
const;
106 virtual void clearRedirect()
const;
146 virtual bool write();
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...
codedFunctionObject(const word &name, const Time &time, const dictionary &dict)
Construct from Time and dictionary.
void operator=(const codedFunctionObject &)=delete
Disallow default bitwise assignment.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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.
functionObject(const word &name)
Construct from components.
virtual ~codedFunctionObject()
Destructor.
TypeName("coded")
Runtime type information.
virtual bool execute()
Called at each ++ or += of the time-loop.
virtual bool write()
Called at each ++ or += of the time-loop.