39 namespace functionEntries
55 primitiveEntryIstream,
71 <<
"Using #calc - line " 77 "functionEntries::calcEntry::evaluate(..)",
86 codeSubDict.
add(
"code",
"os << (" +
s +
");");
93 (*function)(
os, parentDict);
123 parentDict.
read(result);
bool read(Istream &is)
Read dictionary from Istream. Discards the header.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static streamingFunctionType getFunction(const dictionary &parentDict, const dictionary &codeDict)
Construct, compile, load and return streaming function.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
Uses dynamic compilation to provide calculating functionality for entering dictionary entries...
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
void(* streamingFunctionType)(Ostream &, const dictionary &)
Interpreter function type.
A keyword and a list of tokens comprise a primitiveEntry. A primitiveEntry can be read...
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.
OBJstream os(runTime.globalPath()/outputName)
fileName relativeName(const bool caseTag=false) const
The dictionary name relative to the case.
label lineNumber() const noexcept
Const access to the current stream line number.
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
Macros for easy insertion into member function selection tables.
addNamedToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream, calc)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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 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 string buffer, using a OSstream. Always UNCOMPRESSED.
streamFormat format() const noexcept
Get the current stream format.
static bool execute(const dictionary &parentDict, primitiveEntry &entry, Istream &is)
Execute in a primitiveEntry context.
A keyword and a list of tokens is an 'entry'.