30template<
class EnumType,
int nEnum>
33 return lookup_.size();
37template<
class EnumType,
int nEnum>
44template<
class EnumType,
int nEnum>
47 return lookup_.sortedToc();
51template<
class EnumType,
int nEnum>
57 return lookup_.found(enumName);
61template<
class EnumType,
int nEnum>
67 return lookup_.found(enumName);
73template<
class EnumType,
int nEnum>
79 return EnumType(lookup_[name]);
83template<
class EnumType,
int nEnum>
A NamedEnum is a wrapper around a list of names that represent particular enumeration values.
labelList sortedToc() const
The indices of the on bits as a sorted labelList.
labelList toc() const
The indices of the on bits as a sorted labelList.
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.