Go to the documentation of this file.
30 template<
class EnumType,
int nEnum>
33 return lookup_.size();
37 template<
class EnumType,
int nEnum>
44 template<
class EnumType,
int nEnum>
47 return lookup_.sortedToc();
51 template<
class EnumType,
int nEnum>
57 return lookup_.found(enumName);
61 template<
class EnumType,
int nEnum>
67 return lookup_.found(enumName);
73 template<
class EnumType,
int nEnum>
79 return EnumType(lookup_[
name]);
83 template<
class EnumType,
int nEnum>
label size() const
The number of lookup names for the enumeration.
A class for handling words, derived from Foam::string.
bool found(const word &enumName) const
Test if there is an enumeration corresponding to the given name.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const complex &c)
Return string representation of complex.
bool hasEnum(const word &enumName) const
Test if there is an enumeration corresponding to the given name.
wordList sortedToc() const
The sorted list of enum names.
const dimensionedScalar e
Elementary charge.
wordList toc() const
The list of enum names.
A NamedEnum is a wrapper around a list of names that represent particular enumeration values.