51 template<
class Enum,
unsigned int nEnum>
62 void operator=(
const NamedEnum&) =
delete;
70 static const char*
names[nEnum];
static wordList words()
The set of names as a list of words.
const Enum operator[](const char *name) const
Return the enumeration element corresponding to the given name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void write(const Enum e, Ostream &) const
Write the name representation of the enumeration to an Ostream.
Initialise the NamedEnum HashTable from the static list of names.
static stringList strings()
The set of names as a list of strings.
A class for handling words, derived from string.
NamedEnum()
Construct from names.
An STL-conforming hash table.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
word name(const complex &)
Return a string representation of a complex.
Enum read(Istream &) const
Read a word from Istream and return the corresponding.
const doubleScalar e
Elementary charge.