Go to the documentation of this file.
87 #ifndef Function1Types_CodedFunction1_H
88 #define Function1Types_CodedFunction1_H
97 namespace Function1Types
107 public Function1<Type>,
115 const word redirectName_;
117 mutable autoPtr<Function1<Type>> redirectFunctionPtr_;
123 const Function1<Type>& redirectFunction()
const;
163 =
"codedFunction1Template.C";
167 =
"codedFunction1Template.H";
201 virtual inline Type
value(
const scalar
x)
const;
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
Tools for handling dynamic code compilation.
A class for managing temporary objects.
Encapsulation of dynamic code dictionaries.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
virtual const dictionary & codeContext() const
Additional 'codeContext' dictionary to pass through.
const word const dictionary & dict
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
TypeName("coded")
Runtime type information.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
static constexpr const char *const codeTemplateH
Name of the H code template to be used.
Registry of regIOobjects.
CodedFunction1(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
Function1 with the code supplied by an on-the-fly compiled C++ expression.
const word const dictionary const objectRegistry * obrPtr
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
virtual const dictionary & codeDict() const
virtual Type value(const scalar x) const
Return value at current time.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual ~CodedFunction1()=default
Destructor.
virtual string description() const
Description (type + name) for the output.
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void operator=(const CodedFunction1< Type > &)=delete
No copy assignment.
virtual void writeData(Ostream &os) const
Write in dictionary format.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void clearRedirect() const
Clear redirected object(s)