36 const word& entryName,
49 const word& entryName,
78 dict.readEntry(
"value", value_);
86 const word& entryName,
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
const word const dictionary & dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A traits class, which is primarily used for primitives and vector-space.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
virtual Type value(const scalar) const
Return constant value.
Constant(const word &entryName, const Type &value, const objectRegistry *obrPtr=nullptr)
Construct from components.
virtual void writeData(Ostream &os) const
Write in dictionary format.
A class for handling words, derived from Foam::string.
Templated function that returns a constant value.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void writeData(Ostream &os) const
Write as primitive (inline) format.
OBJstream os(runTime.globalPath()/outputName)
virtual bool isStream() const noexcept
True if this entry is a stream.
const token & peek() const noexcept
Failsafe peek at what the next read would return, including handling of any putback.
bool skip(label n=1) noexcept
Move tokenIndex relative to the current position.
A class for managing temporary objects.
Registry of regIOobjects.
virtual ITstream & stream() const =0
Return token stream, if entry is a primitive entry.
An input stream of tokens.
A keyword and a list of tokens is an 'entry'.
static constexpr const zero Zero
Global zero (0)