EnumValues

EnumValues class

Provides meta information about enumeration constants of enum type E.

template<typename E,class Guard>class EnumValues : public System::EnumValuesBase

Template parameters

ParameterDescription
EThe type of enumeration

Methods

MethodDescription
EnumValues()Constructs an instance.
ArrayPtr<String> GetNames() const overrideReturns an array containing all names of enumeration E.
static ArrayPtr<String> GetNames(const TypeInfo&)Retrieves an array of the names of the constants in a specified enumeration.
const System::TypeInfo& GetUnderlyingType() const overrideReturns the underlying type of the specified enumeration.
static const System::TypeInfo& GetUnderlyingType(const TypeInfo&)Returns the underlying type of the specified enumeration.
SharedPtr<Object> GetValueOf(const String&, bool) const overrideReturns boxed value of the enum constant with the specified name.
SharedPtr<Object> GetValueOf(long) const overrideReturns boxed value of the enum constant with the specified value.
ArrayPtr<int64_t> GetValues() const overrideReturns an array containing all values of enumeration E.
static ArrayPtr<int64_t> GetValues(const TypeInfo&)Returns an array containing all values of the specified enumeration type.
static SharedPtr<Object> Parse(const TypeInfo&, const String&, bool)Returns an object that represents a value of enumeration constant of the specified enumeration type with the specified name.
static SharedPtr<Object> ToObject(const TypeInfo&, uint64_t)Converts the specified 64-bit unsigned integer value to an enumeration member.
static SharedPtr<Object> ToObject(const TypeInfo&, const SharedPtr<Object>&)Converts the specified object with an integer value to an enumeration member.
virtual ~EnumValues()Destructor.

See Also