System::EnumValues 类
EnumValues class
提供关于枚举类型 E 的枚举常量的元信息。
template<typename E,class Guard>class EnumValues : public System::EnumValuesBase
方法
| 方法 | 描述 |
|---|
| EnumValues() | 构造一个实例。 |
| GetNames() const override | 返回包含枚举 E 所有名称的数组。 |
| static GetNames(const TypeInfo&) | 检索指定枚举中常量名称的数组。 |
| GetUnderlyingType() const override | 返回指定枚举的底层类型。 |
| static GetUnderlyingType(const TypeInfo&) | 返回指定枚举的底层类型。 |
| GetValueOf(const String&, bool) const override | 返回具有指定名称的枚举常量的装箱值。 |
| GetValueOf(long) const override | 返回具有指定值的枚举常量的装箱值。 |
| GetValues() const override | 返回包含枚举 E 所有值的数组。 |
| static GetValues(const TypeInfo&) | 返回包含指定枚举类型所有值的数组。 |
| static Parse(const TypeInfo&, const String&, bool) | 返回一个对象,该对象表示具有指定名称的指定枚举类型的枚举常量值。 |
| static ToObject(const TypeInfo&, uint64_t) | 转换指定的 64 位无符号整数值为枚举成员。 |
| static ToObject(const TypeInfo&, const SharedPtr<Object>&) | 将具有整数值的指定对象转换为枚举成员。 |
| virtual ~EnumValues() | 析构函数。 |
另见