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_;
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
const word const dictionary & dict
static constexpr const char *const codeTemplateC
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
Registry of regIOobjects.
CodedFunction1(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
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
virtual const dictionary & codeDict() const
virtual Type value(const scalar x) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual ~CodedFunction1()=default
virtual string description() const
virtual dlLibraryTable & libs() const
virtual tmp< Function1< Type > > clone() const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void operator=(const CodedFunction1< Type > &)=delete
virtual void writeData(Ostream &os) const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void clearRedirect() const