46 return (memberAddress < other.memberAddress);
59 inline std::string
getName()
const {
return name; }
73 inline std::shared_ptr<const DataType>
getSubType()
const {
return subType; }
80 inline void setSubType(std::shared_ptr<const DataType> type) { subType = type; }
91 std::string typeSpecName;
94 std::shared_ptr<const DataType> subType;
Definition: AllocInfo.hpp:22
Represent a normal or static member of a struct.
Definition: StructMember.hpp:11
~StructMember()
Definition: StructMember.cpp:13
void * getAddressOfMember(void *structAddress=NULL) const
Get the address of this member given the base address of a struct containing it.
Definition: StructMember.cpp:29
std::string getName() const
Get the name of this struct member.
Definition: StructMember.hpp:59
std::string getTypeSpecName() const
Get the type name of this struct member.
Definition: StructMember.hpp:66
void setSubType(std::shared_ptr< const DataType > type)
Set the SubType of this member.
Definition: StructMember.hpp:80
bool operator<(const StructMember &other) const
Enable sorting by offset.
Definition: StructMember.hpp:45
std::shared_ptr< const DataType > getSubType() const
Get the type of this member.
Definition: StructMember.hpp:73
std::string toString() const
toString
Definition: StructMember.cpp:15
@ STATIC
Definition: StructMember.hpp:17
@ NORMAL
Definition: StructMember.hpp:16
StorageClass getStorageClass() const
Get the storage class of this member.
Definition: StructMember.hpp:87
StructMember(std::string memberName, std::string typeSpecName, int address, StorageClass storage=NORMAL)
Definition: StructMember.cpp:9