Helper methods for creating expressions. More...
Classes | |
class | boolEntry |
Expression representation of a bool : (false/true) More... | |
struct | dimensionedScalarEntry |
Create an expression string from a dimensionedScalar as its value. More... | |
struct | dimensionedSphericalTensorEntry |
Create an expression string from a dimensionedSphericalTensor as its value. More... | |
struct | dimensionedSymmTensorEntry |
Create an expression string from a dimensionedSymmTensor as its value. More... | |
struct | dimensionedTensorEntry |
Create an expression string from a dimensionedTensor as its value. More... | |
struct | dimensionedVectorEntry |
Create an expression string from a dimensionedVector as its value. More... | |
class | expressionEntry |
Convert dictionary entry to a stringified expression. More... | |
struct | sphericalTensorEntry |
Create an expression string from a sphericalTensor. More... | |
class | stringEntry |
Creates an expression from a string (removing surrounding quotes) More... | |
struct | symmTensorEntry |
Create an expression string from a symmTensor. More... | |
struct | tensorEntry |
Create an expression string from a tensor. More... | |
struct | vectorEntry |
Create an expression string from a vector. More... | |
defineTypeName | ( | expressionEntry | ) |
defineRunTimeSelectionTable | ( | expressionEntry | , |
empty | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
expressionEntry | , | ||
empty | , | ||
direct | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
expressionEntry | , | ||
empty | , | ||
label | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
expressionEntry | , | ||
empty | , | ||
scalar | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
expressionEntry | , | ||
empty | , | ||
word | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
boolEntry | , | ||
empty | , | ||
bool | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
dimensionedScalarEntry | , | ||
empty | , | ||
dimensionedScalar | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
dimensionedVectorEntry | , | ||
empty | , | ||
dimensionedVector | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
dimensionedTensorEntry | , | ||
empty | , | ||
dimensionedTensor | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
dimensionedSymmTensorEntry | , | ||
empty | , | ||
dimensionedSymmTensor | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
dimensionedSphericalTensorEntry | , | ||
empty | , | ||
dimensionedSphericalTensor | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
stringEntry | , | ||
empty | , | ||
string | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
stringEntry | , | ||
empty | , | ||
fileName | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
vectorEntry | , | ||
empty | , | ||
vector | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
tensorEntry | , | ||
empty | , | ||
tensor | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
symmTensorEntry | , | ||
empty | , | ||
symmTensor | |||
) |
addNamedToRunTimeSelectionTable | ( | expressionEntry | , |
sphericalTensorEntry | , | ||
empty | , | ||
sphericalTensor | |||
) |
string zeroValue | ( | ) |
Stringified value for zero of given type.
Stringified version of data with comma separators between components.
string toString | ( | const Type & | data | ) |
Stringified version of data with comma separators between components. Uses prefix corresponding to the pTraits of Type.
Stringified version of primitiveEntry of Type. Uses comma separators and prefix corresponding to the pTraits of Type
Foam::List< Foam::expressions::exprString > getList | ( | const dictionary & | dict, |
const word & | keyword, | ||
bool | mandatory = true , |
||
label | recursionDepth = 0 |
||
) |
Get an expression string list from a dictionary.
Supports list and inline specifications, as well as indirect inclusion of other expression string lists.
Syntax examples,
Definition at line 119 of file exprTools.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, token::isLabel(), token::isPunctuation(), token::isString(), Foam::nl, List< T >::resize(), ITstream::rewind(), entry::stream(), and token::stringToken().
Referenced by exprDriver::readVariableStrings().