Go to the documentation of this file.
68 #ifndef exprTools_expressionEntry_H
69 #define exprTools_expressionEntry_H
154 const std::string& str,
A keyword and a list of tokens is an 'entry'.
static string evaluate(const entry &e)
Generic concatenate tokens to space-separated string.
A class for handling words, derived from Foam::string.
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))
virtual string toExpr(const entry &e) const
To string. Normally with comma separators.
Convert dictionary entry to a stringified expression.
static string toExprStr(const Type &data)
expressionEntry()=default
Construct null.
static void inplaceExpand(std::string &s, const dictionary &dict)
Inplace expand expression with dictionary variables/entries.
TypeNameNoDebug("expressionEntry")
Runtime type information.
An input stream of tokens.
static autoPtr< expressionEntry > New(const word &name)
Return an entry to expression converter.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static expressions::exprString expand(const std::string &str, const dictionary &dict)
Expand expression with dictionary entries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual ~expressionEntry()=default
Destructor.
Macros to ease declaration of run-time selection tables.
const dimensionedScalar e
Elementary charge.
declareRunTimeSelectionTable(autoPtr, expressionEntry, empty,(),())
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Database for solution data, solver performance and other reduced data.