CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Provides meta information about enumeration constants of enum type E
.
More...
#include <enum.h>
Inherits System::EnumValuesBase.
Public Member Functions | |
EnumValues () | |
Constructs an instance. More... | |
virtual | ~EnumValues () |
Destructor. More... | |
virtual ArrayPtr< int64_t > | GetValues () const override |
Returns an array containing all values of enumeration E . More... | |
virtual ArrayPtr< String > | GetNames () const override |
Returns an array containing all names of enumeration E . More... | |
virtual SharedPtr< Object > | GetValueOf (const String &str, bool ignoreCase) const override |
Returns boxed value of the enum constant with the specified name. More... | |
virtual SharedPtr< Object > | GetValueOf (long val) const override |
Returns boxed value of the enum constant with the specified value. More... | |
virtual const System::TypeInfo & | GetUnderlyingType () const override |
Returns the underlying type of the specified enumeration. More... | |
Additional Inherited Members | |
![]() | |
static ArrayPtr< int64_t > | GetValues (const TypeInfo &type) |
Returns an array containing all values of the specified enumeration type. More... | |
static ArrayPtr< String > | GetNames (const TypeInfo &type) |
Retrieves an array of the names of the constants in a specified enumeration. More... | |
static SharedPtr< Object > | Parse (const TypeInfo &type, const String &str, bool ignoreCase) |
Returns an object that represents a value of enumeration constant of the specified enumeration type with the specified name. More... | |
static SharedPtr< Object > | ToObject (const TypeInfo &type, uint64_t value) |
Converts the specified 64-bit unsigned integer value to an enumeration member. More... | |
static SharedPtr< Object > | ToObject (const TypeInfo &type, const SharedPtr< Object > &value) |
Converts the specified object with an integer value to an enumeration member. More... | |
static const System::TypeInfo & | GetUnderlyingType (const TypeInfo &type) |
Returns the underlying type of the specified enumeration. More... | |
![]() | |
EnumValuesBase (const TypeInfo &type) | |
Constructs an instance that represents metainformation for enum of the specified type. More... | |
virtual | ~EnumValuesBase () |
Destructor. More... | |
virtual ArrayPtr< int64_t > | GetValues () const =0 |
Returns an array containing all values of enumeration E . More... | |
virtual ArrayPtr< String > | GetNames () const =0 |
Returns an array containing all names of enumeration E . More... | |
virtual SharedPtr< Object > | GetValueOf (const String &str, bool ignoreCase) const =0 |
Returns boxed value of the enum constant with the specified name. More... | |
virtual SharedPtr< Object > | GetValueOf (long val) const =0 |
Returns boxed value of the enum constant with the specified value. More... | |
virtual const System::TypeInfo & | GetUnderlyingType () const =0 |
Returns the underlying type of the specified enumeration. More... | |
Provides meta information about enumeration constants of enum type E
.
E | The type of enumeration |
|
inline |
Constructs an instance.
|
inlinevirtual |
Destructor.
|
inlineoverridevirtual |
Returns an array containing all names of enumeration E
.
Implements System::EnumValuesBase.
|
inlineoverridevirtual |
Returns the underlying type of the specified enumeration.
Implements System::EnumValuesBase.
|
inlineoverridevirtual |
Returns boxed value of the enum constant with the specified name.
str | The name of the enum constant |
ignoreCase | Specifeis if the case should be ignored when interpreting the name of the enum constant |
str
. Implements System::EnumValuesBase.
|
inlineoverridevirtual |
Returns boxed value of the enum constant with the specified value.
val | The value of the enum constant |
str
. Implements System::EnumValuesBase.
|
inlineoverridevirtual |
Returns an array containing all values of enumeration E
.
Implements System::EnumValuesBase.