stringEntry Class Reference

Creates an expression from a string (removing surrounding quotes) More...

Inheritance diagram for stringEntry:
[legend]
Collaboration diagram for stringEntry:
[legend]

Public Member Functions

virtual string toExpr (const entry &e) const
 To string. More...
 
- Public Member Functions inherited from expressionEntry
 TypeNameNoDebug ("expressionEntry")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, expressionEntry, empty,(),())
 
 expressionEntry ()=default
 Construct null. More...
 
virtual ~expressionEntry ()=default
 Destructor. More...
 
virtual string toExpr (const entry &e) const
 To string. Normally with comma separators. More...
 
template<class Type >
Foam::string toExprStr (const Type &data)
 
template<class Type >
Foam::string toExprStr (ITstream &is)
 

Static Public Member Functions

static string evaluate (const entry &e)
 To string. More...
 
- Static Public Member Functions inherited from expressionEntry
static autoPtr< expressionEntryNew (const word &name)
 Return an entry to expression converter. More...
 
static string evaluate (const entry &e)
 Generic concatenate tokens to space-separated string. More...
 
static void inplaceExpand (std::string &s, const dictionary &dict)
 Inplace expand expression with dictionary variables/entries. More...
 
static expressions::exprString expand (const std::string &str, const dictionary &dict)
 Expand expression with dictionary entries. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from expressionEntry
template<class Type >
static string toExprStr (const Type &data)
 
template<class Type >
static string toExprStr (ITstream &is)
 

Detailed Description

Creates an expression from a string (removing surrounding quotes)

Source files

Definition at line 53 of file expressionEntryStrings.H.

Member Function Documentation

◆ evaluate()

static string evaluate ( const entry e)
inlinestatic

To string.

Definition at line 58 of file expressionEntryStrings.H.

References e, and UList< T >::get().

Referenced by stringEntry::toExpr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toExpr()

virtual string toExpr ( const entry e) const
inlinevirtual

To string.

Reimplemented from expressionEntry.

Definition at line 64 of file expressionEntryStrings.H.

References e, and stringEntry::evaluate().

Here is the call graph for this function:

The documentation for this class was generated from the following file: