87 #ifndef Foam_Function1Types_CodedFunction1_H 88 #define Foam_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;
virtual Type value(const scalar x) const
Return value at current time.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
TypeName("coded")
Runtime type information.
const word const dictionary & dict
CodedFunction1(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual tmp< Function1< Type > > clone() const
Return a clone.
virtual string description() const
Description (type + name) for the output.
virtual ~CodedFunction1()=default
Destructor.
static tmp< Function1< Type > > Clone(const Derived &fun)
Clone a Function1.
virtual void clearRedirect() const
Clear redirected object(s)
virtual dlLibraryTable & libs() const
Mutable access to the loaded dynamic libraries.
A class for handling words, derived from Foam::string.
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
void operator=(const CodedFunction1< Type > &)=delete
No copy assignment.
A table of dynamically loaded libraries.
Function1 with the code supplied by an on-the-fly compiled C++ expression.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const word const dictionary const objectRegistry * obrPtr
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
Tools for handling dynamic code compilation.
virtual void writeData(Ostream &os) const
Write in dictionary format.
Encapsulation of dynamic code dictionaries.
virtual const dictionary & codeDict() const
static constexpr const char *const codeTemplateH
Name of the H code template to be used.
A class for managing temporary objects.
virtual const dictionary & codeContext() const
Additional 'codeContext' dictionary to pass through.
Registry of regIOobjects.