36 namespace functionEntries
69 <<
" in file " << dict.
name() <<
endl;
73 "functionEntries::calcEntry::execute(..)",
83 codeDict.
add(
"code",
"os << (" + s +
");");
85 codeStream::streamingFunctionType
function = codeStream::getFunction
93 (*function)(os,
dict);
108 return insert(dict, calc(dict, is));
119 return insert(dict, thisEntry, calc(dict, is));
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)
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
static bool execute(dictionary &dict, Istream &)
Execute the functionEntry in a sub-dict context.
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.
const dictionary & parent() const
Return the parent dictionary.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
streamFormat format() const
Return current stream format.
string str() const
Return the string.
Macros for easy insertion into member function selection tables.
static void checkSecurity(const char *title, const dictionary &)
Check security for creating dynamic code.
A class for handling character strings derived from std::string.
Output to memory buffer stream.
defineTypeNameAndDebug(calcEntry, 0)