52 if (name ==
"value" || !dict.
found(name))
54 dict.
lookup(
"value") >> value_;
63 dict.
lookup(
"value") >> value_;
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Constant(const word &name, const Type &val)
Construct from name and value.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A class for handling words, derived from string.
bool eof() const
Return true if end of input seen.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &os) const
Write in dictionary format.
virtual ~Constant()
Destructor.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
Templated function that returns a constant value.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.