52 template<
class Enum,
unsigned int nEnum>
91 const Enum defaultValue
109 return Enum(table_[
name]);
115 return Enum(table_[
name]);
A 1D vector of objects of type <T> with a fixed size <Size>.
T & operator[](const label)
Return element of FixedList.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Initialise the NamedEnum HashTable from the static list of names.
Enum read(Istream &) const
Read a word from Istream and return the corresponding.
void operator=(const NamedEnum &)=delete
Disallow default bitwise assignment.
Enum select(const dictionary &dict) const
Select the name from the dictionary and return the.
Enum lookupOrDefault(const word &name, const dictionary &dict, const Enum defaultValue) const
Lookup the name from the dictionary if present and return the.
NamedEnum(const FixedList< word, nEnum > &names)
Construct from list of names.
const Enum operator[](const char *name) const
Return the enumeration element corresponding to the given name.
FixedList< word, nEnum > namesType
void write(const Enum e, Ostream &) const
Write the name representation of the enumeration to an Ostream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling words, derived from string.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.