51 template<
class Enum,
unsigned int nEnum>
62 void operator=(
const NamedEnum&) =
delete;
70 static const char*
names[nEnum];
An STL-conforming hash table.
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.
NamedEnum()
Construct from names.
static wordList words()
The set of names as a list of words.
static const char * names[nEnum]
The set of names corresponding to the enumeration Enum.
static stringList strings()
The set of names as a list of strings.
const Enum operator[](const char *name) const
Return the enumeration element corresponding to the given name.
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 class for handling words, derived from string.
word name(const bool)
Return a word representation of a bool.