Type implementation for enumerations.
More...
|
void | Add (tValue &&sNewValue) |
| Adds a new mapped value to the enumeration.
|
|
|
std::string | m_strName |
|
std::shared_ptr< cType > | m_pUnderlyingType |
|
std::vector< tValue > | m_oValues |
|
Type implementation for enumerations.
Do not use this class directly, but use enumeration instead.
Definition at line 138 of file type_reflection_legacy.h.
◆ cEnumerationType()
Initializes the enumeration with a name and underlying type.
- Parameters
-
[in] | strName | The name of the enumeration |
[in] | pUnderlyingType | The underlying type. |
◆ GetAlignment()
size_t GetAlignment |
( |
| ) |
const |
|
overridevirtual |
- Returns
- The default alignment of the type.
Implements cType.
◆ GetName()
std::string GetName |
( |
| ) |
const |
|
overridevirtual |
- Returns
- The name of the type.
Implements cType.
◆ GetSize()
- Returns
- The size of the type.
Implements cType.
◆ GetUnderlyingType()
const std::shared_ptr<cType>& GetUnderlyingType |
( |
| ) |
const |
- Returns
- The underlying type.
◆ GetValues()
const std::vector<tValue>& GetValues |
( |
| ) |
const |
- Returns
- The mapped values of the enumeration.