Type implementation for structures.
More...
|
std::string | m_strName |
|
size_t | m_nSize |
|
size_t | m_nAlignment |
|
std::vector< member > | m_oMembers |
|
Type implementation for structures.
Do not use this class directly, but use structure instead.
Definition at line 267 of file type_reflection_legacy.h.
◆ cStructureType()
cStructureType |
( |
const std::string & |
strName, |
|
|
size_t |
nSize, |
|
|
size_t |
nAlignment |
|
) |
| |
Initializes the structure type.
- Parameters
-
[in] | strName | The name. |
[in] | nSize | The size in bytes. |
[in] | nAlignment | The default alignment. |
◆ Add()
void Add |
( |
member && |
sNewMember | ) |
|
|
protected |
Adds a new member to the structure.
- Parameters
-
[in] | sNewMember | The new member. |
Referenced by structure< T >::Add().
◆ GetAlignment()
size_t GetAlignment |
( |
| ) |
const |
|
overridevirtual |
◆ GetAsStringPair()
std::pair<std::string, std::string> GetAsStringPair |
( |
| ) |
const |
◆ GetMembers()
const std::vector<member>& GetMembers |
( |
| ) |
const |
- Returns
- A list of all members of the structure.
◆ GetName()
std::string GetName |
( |
| ) |
const |
|
overridevirtual |
- Returns
- The name of the type.
Implements cType.
◆ GetSize()
◆ operator std::pair< std::string, std::string >()
operator std::pair< std::string, std::string > |
( |
| ) |
const |
|
inline |