Enum Enum struct Provides methods that perform some operations on values of enum type. This is a static type with no instance services. You should never create instances of it by any means.
Copy template < class E , class Guard > class Enum
Template parameters Parameter Description E The type of enum on values of which the class handles Guard Service type argument whose purpose is to ensure that E is enumerable type
Methods Method Description static int Compare (E, T) Performs the arithmetic comparison of the values of the specified enumeration constants. static std::enable_if<std::is_same<T, E>::value static std::enable_if<std::is_same<T, E>::value static ArrayPtr <String > GetNames () Returns an array containing names of all members of enumeration E . static const System::TypeInfo & GetUnderlyingType () Returns the underlying type of the enumeration. static ArrayPtr <E> GetValues () Returns an array containing all members of enumeration E . static bool HasFlag (E, E) Determines if the specified bits are set in a bitary representation of the specified enum value. static bool IsDefined (E) Determines whether the specified value is a member of enumeration type E . static std::enable_if<std::is_convertible<T, UnderlyingType >::value, bool >::type IsDefined (T) Determines whether the specified value is a member of enumeration type T . static bool IsDefined (const String &) Determines if the value with the specified name is among members of enum E . static E Parse (const String &, bool ) Converts the specfied string into equivalent enum constant. static bool TryParse (const String &, E&) Tries to convert the specified string into equivalent enum constant. static bool TryParse (const String &, bool , E&) Tries to convert the specified string into equivalent enum constant.
Typedefs Typedef Description UnderlyingType Alias for the enum’s underlying type.
See Also