92 #ifndef Foam_functionObjects_codedFunctionObject_H 93 #define Foam_functionObjects_codedFunctionObject_H 102 namespace functionObjects
109 class codedFunctionObject
111 public functionObjects::timeFunctionObject,
136 virtual dlLibraryTable&
libs()
const;
151 virtual void prepare(dynamicCode&,
const dynamicCodeContext&)
const;
167 =
"functionObjectTemplate.C";
171 =
"functionObjectTemplate.H";
185 const dictionary&
dict functionObject & redirectFunctionObject() const
Dynamically compiled functionObject.
virtual void clearRedirect() const
Clear redirected object(s)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Abstract base-class for Time/database function objects.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
virtual const dictionary & codeDict() const
The code dictionary.
const word & name() const noexcept
Return the name of this functionObject.
static constexpr const char *const codeTemplateH
Name of the H code template to be used.
virtual bool write()
Called at each ++ or += of the time-loop.
virtual const dictionary & codeContext() const
Additional 'codeContext' dictionary to pass through.
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
void operator=(const codedFunctionObject &)=delete
No copy assignment.
virtual bool execute()
Called at each ++ or += of the time-loop.
TypeName("coded")
Runtime type information.
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
autoPtr< functionObject > redirectFunctionObjectPtr_
Underlying functionObject.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
dictionary dict_
Input dictionary.
virtual string description() const
Description (type + name) for the output.
codedFunctionObject(const codedFunctionObject &)=delete
No copy construct.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
virtual ~codedFunctionObject()=default
Destructor.