Go to the documentation of this file.
95 #ifndef functionEntries_codeStream_H
96 #define functionEntries_codeStream_H
105 class dlLibraryTable;
107 namespace functionEntries
150 static constexpr
const char*
const codeTemplateC =
"codeStreamTemplate.C";
A keyword and a list of tokens is an 'entry'.
A table of dynamically loaded libraries.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read,...
static string evaluate(const dictionary &parentDict, Istream &is)
Evaluate dynamically compiled code, returning result as string.
ClassName("codeStream")
Runtime type information.
static bool execute(const dictionary &parentDict, primitiveEntry &entry, Istream &is)
Execute in a primitiveEntry context.
virtual const dictionary & dict() const
This entry is not a dictionary,.
static streamingFunctionType getFunction(const dictionary &parentDict, const dictionary &codeDict)
Construct, compile, load and return streaming function.
void(* streamingFunctionType)(Ostream &, const dictionary &)
Interpreter function type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static dlLibraryTable & libs(const dictionary &dict)
Helper function: access to dlLibraryTable of Time.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
static bool doingMasterOnlyReading(const dictionary &dict)
Helper: access IOobject for master-only-reading functionality.
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
Dictionary entry that contains C++ OpenFOAM code that is compiled to generate the entry itself....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...