Represent a normal or static member of a struct.
More...
#include <StructMember.hpp>
Represent a normal or static member of a struct.
◆ StorageClass
◆ StructMember()
| StructMember::StructMember |
( |
std::string |
memberName, |
|
|
std::string |
typeSpecName, |
|
|
int |
address, |
|
|
StorageClass |
storage = NORMAL |
|
) |
| |
◆ ~StructMember()
| StructMember::~StructMember |
( |
| ) |
|
◆ getAddressOfMember()
| void * StructMember::getAddressOfMember |
( |
void * |
structAddress = NULL | ) |
const |
Get the address of this member given the base address of a struct containing it.
- Parameters
-
| structAddress | base address of struct - may be excluded if we're working with a static member |
- Returns
- void* address of member
◆ getName()
| std::string StructMember::getName |
( |
| ) |
const |
|
inline |
Get the name of this struct member.
- Returns
- std::string
◆ getStorageClass()
◆ getSubType()
| std::shared_ptr<const DataType> StructMember::getSubType |
( |
| ) |
const |
|
inline |
Get the type of this member.
- Returns
- std::shared_ptr<const DataType>
◆ getTypeSpecName()
| std::string StructMember::getTypeSpecName |
( |
| ) |
const |
|
inline |
Get the type name of this struct member.
- Returns
- std::string
◆ operator<()
| bool StructMember::operator< |
( |
const StructMember & |
other | ) |
const |
|
inline |
Enable sorting by offset.
◆ setSubType()
| void StructMember::setSubType |
( |
std::shared_ptr< const DataType > |
type | ) |
|
|
inline |
Set the SubType of this member.
- Parameters
-
◆ toString()
| std::string StructMember::toString |
( |
| ) |
const |
toString
- Returns
- std::string
The documentation for this struct was generated from the following files: