100 namespace functionEntries
104 class codeBlockEntry;
label lineNumber() const
Return current stream line number.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
Part of the #codeBlock...#codeBlock clause.
Compiles and executes C++ OpenFOAM code string expressions.
Compiles and executes C++ OpenFOAM code string expressions.
void operator=(const streamEntry &)=delete
Disallow default bitwise assignment.
static OTstream resultStream(const dictionary &dict, Istream &is, const string &startString=string::null, const string &endString=string::null)
Perform the calculation and return the result in an OTstream.
streamEntry(const label lineNumber, const dictionary &parentDict, Istream &is)
Construct from line number, dictionary and Istream.
FunctionTypeName("#stream")
Runtime type information.
static string codeString(const label index, const dictionary &codeDict, Istream &, const string &startString=string::null, const string &endString=string::null)
Return the code string.
virtual bool execute(dictionary &contextDict, Istream &)
Expand the functionEntry into the contextDict.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
const dictionary & dict() const
This entry is not a dictionary,.
static const string null
An empty string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.