36 namespace functionEntries
70 <<
" in file " << parentDict.
name() <<
endl;
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;
118 "functionEntries::calcEntry::execute(..)",
130 codeSubDict.
add(
"code",
"os << (" + s +
");");
133 codeStream::streamingFunctionType
function = codeStream::getFunction
141 (*function)(os, parentDict);
145 parentDict.
read(resultStream);
bool read(Istream &)
Read dictionary from Istream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Uses dynamic compilation to provide calculating functionality for entering dictionary entries...
label lineNumber() const
Return current stream line number.
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
bool add(entry *, bool mergeEntry=false)
Add a new entry.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read, written and printed, and the types and values of its tokens analysed.
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))
const fileName & name() const
Return the dictionary name.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
streamFormat format() const
Return current stream format.
static bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
Input from memory buffer stream.
Macros for easy insertion into member function selection tables.
virtual bool read(const dictionary &, Istream &)
Read tokens from the given stream.
static void checkSecurity(const char *title, const dictionary &)
Check security for creating dynamic code.
Output to memory buffer stream.
defineTypeNameAndDebug(calcEntry, 0)