Go to the documentation of this file.
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";
dictionary dict_
Input dictionary.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
autoPtr< functionObject > redirectFunctionObjectPtr_
Underlying functionObject.
A table of dynamically loaded libraries.
virtual const dictionary & codeDict() const
The code dictionary.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual bool write()
Called at each ++ or += of the time-loop.
A class for handling words, derived from Foam::string.
static constexpr const char *const codeTemplateH
Name of the H code template to be used.
Tools for handling dynamic code compilation.
virtual string description() const
Description (type + name) for the output.
Encapsulation of dynamic code dictionaries.
void operator=(const codedFunctionObject &)=delete
No copy assignment.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
Virtual base class for function objects with a reference to Time.
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
codedFunctionObject(const codedFunctionObject &)=delete
No copy construct.
Abstract base-class for Time/database function objects.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
Provides a general interface to enable dynamic code compilation.
functionObject & redirectFunctionObject() const
Dynamically compiled functionObject.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool end()
Called when Time::run() determines that the time-loop exits.
virtual ~codedFunctionObject()=default
Destructor.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const word & name() const noexcept
Return the name of this functionObject.
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
TypeName("coded")
Runtime type information.
virtual const dictionary & codeContext() const
Additional 'codeContext' dictionary to pass through.
virtual bool execute()
Called at each ++ or += of the time-loop.
virtual void clearRedirect() const
Clear redirected object(s)