System::EnumValues< E, Guard > Class Template Reference

Provides meta information about enumeration constants of enum type E. More...

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 SharedPtr< ObjectGetValueOf (const String &str, bool ignoreCase) const override
 Returns boxed value of the enum constant with the specified name. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from System::EnumValuesBase
static ASPOSECPP_SHARED_API ArrayPtr< int64_t > GetValues (const TypeInfo &type)
 Returns an array containing all values of the specified enumeration type. More...
 
static ASPOSECPP_SHARED_API SharedPtr< ObjectParse (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...
 
- Protected Member Functions inherited from System::EnumValuesBase
ASPOSECPP_SHARED_API EnumValuesBase (const TypeInfo &type)
 Constructs an instance that represents metainformation for enum of the specified type. More...
 
virtual ASPOSECPP_SHARED_API ~EnumValuesBase ()
 Destructor. More...
 

Detailed Description

template<typename E, class Guard = typename std::enable_if<std::is_enum<E>::value>::type>
class System::EnumValues< E, Guard >

Provides meta information about enumeration constants of enum type E.

Template Parameters
EThe type of enumeration

Constructor & Destructor Documentation

◆ EnumValues()

template<typename E , class Guard = typename std::enable_if<std::is_enum<E>::value>::type>
System::EnumValues< E, Guard >::EnumValues ( )
inline

Constructs an instance.

◆ ~EnumValues()

template<typename E , class Guard = typename std::enable_if<std::is_enum<E>::value>::type>
virtual System::EnumValues< E, Guard >::~EnumValues ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ GetValueOf()

template<typename E , class Guard = typename std::enable_if<std::is_enum<E>::value>::type>
virtual SharedPtr<Object> System::EnumValues< E, Guard >::GetValueOf ( const String str,
bool  ignoreCase 
) const
inlineoverridevirtual

Returns boxed value of the enum constant with the specified name.

Parameters
strThe name of the enum constant
ignoreCaseSpecifeis if the case should be ignored when interpreting the name of the enum constant
Returns
A boxed value of the enum constant whose name is specified in str.

Implements System::EnumValuesBase.

◆ GetValues()

template<typename E , class Guard = typename std::enable_if<std::is_enum<E>::value>::type>
virtual ArrayPtr<int64_t> System::EnumValues< E, Guard >::GetValues ( ) const
inlineoverridevirtual

Returns an array containing all values of enumeration E.

Implements System::EnumValuesBase.