Go to the documentation of this file.
36 namespace functionEntries
70 <<
" in file " << parentDict.
name() <<
endl;
72 dynamicCode::checkSecurity
74 "functionEntries::calcEntry::execute(..)",
86 codeSubDict.
add(
"code",
"os << (" +
s +
");");
89 codeStream::streamingFunctionType
function = codeStream::getFunction
97 (*function)(os, parentDict);
101 thisEntry.
read(parentDict, resultStream);
114 <<
" in file " << parentDict.
name() <<
endl;
116 dynamicCode::checkSecurity
118 "functionEntries::calcEntry::execute(..)",
130 codeSubDict.
add(
"code",
"os << (" +
s +
");");
133 codeStream::streamingFunctionType
function = codeStream::getFunction
141 (*function)(os, parentDict);
145 parentDict.
read(resultStream);
streamFormat format() const
Return current stream format.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
virtual bool read(const dictionary &, Istream &)
Read tokens from the given stream.
const fileName & name() const
Return the dictionary name.
Uses dynamic compilation to provide calculating functionality for entering dictionary entries.
Ostream & endl(Ostream &os)
Add newline and flush stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Macros for easy insertion into member function selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Input from memory buffer stream.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
Output to memory buffer stream.
label lineNumber() const
Return current stream line number.
bool read(Istream &)
Read dictionary from Istream.
defineTypeNameAndDebug(calcEntry, 0)
bool add(entry *, bool mergeEntry=false)
Add a new entry.