CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
A base class for a class that represents meta information of enumeration type. More...
#include <enum.h>
Inherited by System::EnumValues< E, Guard >.
Static Public Member Functions | |
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... | |
Protected Member Functions | |
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... | |
A base class for a class that represents meta information of enumeration type.
|
protected |
Constructs an instance that represents metainformation for enum of the specified type.
|
protectedvirtual |
Destructor.
Returns an array containing all names of enumeration E
.
Implemented in System::EnumValues< E, Guard >.
Retrieves an array of the names of the constants in a specified enumeration.
type | An enumeration type. |
|
protectedpure virtual |
Returns the underlying type of the specified enumeration.
Implemented in System::EnumValues< E, Guard >.
|
static |
Returns the underlying type of the specified enumeration.
type | The enumeration whose underlying type will be retrieved. |
|
protectedpure virtual |
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
. Implemented in System::EnumValues< E, Guard >.
|
protectedpure virtual |
Returns boxed value of the enum constant with the specified value.
val | The value of the enum constant |
str
. Implemented in System::EnumValues< E, Guard >.
|
protectedpure virtual |
Returns an array containing all values of enumeration E
.
Implemented in System::EnumValues< E, Guard >.
Returns an array containing all values of the specified enumeration type.
type | The TypeInfo object representing the type of the enumeration whose values to return |
type
.
|
static |
Returns an object that represents a value of enumeration constant of the specified enumeration type with the specified name.
type | The TypeInfo object representing the type of the enumeration value to return |
str | The name of the enum constant |
ignoreCase | Specifeis if the case should be ignored when interpreting the name of the enum constant |
str
.
|
static |
Converts the specified object with an integer value to an enumeration member.
type | The enumeration type to return. |
value | The value convert to an enumeration member. |
|
static |
Converts the specified 64-bit unsigned integer value to an enumeration member.
type | The enumeration type to return. |
value | The value to convert to an enumeration member. |