ADTF
|
Type implementation for structures. More...
#include <type_reflection_legacy.h>
Classes | |
struct | member |
All information about a structure member. More... | |
Public Member Functions | |
cStructureType (const std::string &strName, size_t nSize, size_t nAlignment) | |
Initializes the structure type. | |
cStructureType (const cStructureType &oOther) | |
std::string | GetName () const override |
size_t | GetSize () const override |
size_t | GetAlignment () const override |
const std::vector< member > & | GetMembers () const |
std::pair< std::string, std::string > | GetAsStringPair () const |
Legacy conversion to a pair of (first) md_struct and (second)md_description. | |
operator std::pair< std::string, std::string > () const | |
Legacy conversion operator to a pair of (first) md_struct and (second)md_description. | |
Protected Member Functions | |
void | Add (member &&sNewMember) |
Adds a new member to the structure. | |
Private Attributes | |
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 | ( | const std::string & | strName, |
size_t | nSize, | ||
size_t | nAlignment ) |
Initializes the structure type.
[in] | strName | The name. |
[in] | nSize | The size in bytes. |
[in] | nAlignment | The default alignment. |
References cStructureType().
Referenced by cStructureType(), structure< T >::structure(), structure< T >::Add(), and structure< void >::Add().
|
protected |
Adds a new member to the structure.
[in] | sNewMember | The new member. |
Referenced by structure< T >::Add(), structure< T >::Add(), and structure< T >::Add().
|
overridevirtual |
std::pair< std::string, std::string > GetAsStringPair | ( | ) | const |
Legacy conversion to a pair of (first) md_struct and (second)md_description.
Referenced by operator std::pair< std::string, std::string >().
const std::vector< member > & GetMembers | ( | ) | const |
|
overridevirtual |
Implements cType.
|
overridevirtual |
|
inline |
Legacy conversion operator to a pair of (first) md_struct and (second)md_description.
Definition at line 316 of file type_reflection_legacy.h.
References GetAsStringPair().
|
private |
Definition at line 331 of file type_reflection_legacy.h.
|
private |
Definition at line 330 of file type_reflection_legacy.h.
|
private |
Definition at line 332 of file type_reflection_legacy.h.
|
private |
Definition at line 329 of file type_reflection_legacy.h.