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