84 #ifndef functionObjects_codedFunctionObject_H 85 #define functionObjects_codedFunctionObject_H 94 namespace functionObjects
101 class codedFunctionObject
103 public functionObjects::timeFunctionObject,
128 virtual dlLibraryTable&
libs()
const;
159 =
"functionObjectTemplate.C";
163 =
"functionObjectTemplate.H";
198 virtual bool write();
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.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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.
Provides a general interface to enable dynamic code compilation.
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.
A class for handling words, derived from Foam::string.
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.
Tools for handling dynamic code compilation.
Encapsulation of dynamic code dictionaries.
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.