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>
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
A NamedEnum is a wrapper around a list of names that represent particular enumeration values...
const dimensionedScalar e
Elementary charge.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
List< label > sortedToc(const UList< bool > &bools)
Return the (sorted) values corresponding to 'true' entries.
List< label > toc(const UList< bool > &bools)
Return the (sorted) values corresponding to 'true' entries.