Go to the documentation of this file.
78 #ifndef functionObjects_codedFunctionObject_H
79 #define functionObjects_codedFunctionObject_H
88 namespace functionObjects
95 class codedFunctionObject
97 public functionObjects::timeFunctionObject,
122 virtual dlLibraryTable&
libs()
const;
125 virtual void prepare(dynamicCode&,
const dynamicCodeContext&)
const;
150 =
"functionObjectTemplate.C";
154 =
"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 dictionary to initialize the codeContext.
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
Return a 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
Return the name of this functionObject.
virtual dlLibraryTable & libs() const
Get the loaded dynamic libraries.
TypeName("coded")
Runtime type information.
virtual bool execute()
Called at each ++ or += of the time-loop.
virtual void clearRedirect() const
Clear any redirected objects.