#include <Xrtti.h>
Inheritance diagram for Xrtti::Structure:
Public Member Functions | |
AccessType | GetAccessType () const |
const std::type_info * | GetTypeInfo () const |
U32 | GetBaseCount () const |
const Base & | GetBase (U32 index) const |
U32 | GetFieldCount () const |
const Field & | GetField (U32 index) const |
bool | IsAnonymous () const |
U32 | GetConstructorCount () const |
const Constructor & | GetConstructor (U32 index) const |
bool | HasDestructor () const |
const Destructor & | GetDestructor () const |
void * | Create () const |
void * | CreateArray (U32 count) const |
void | Delete (void *pInstance) const |
void | DeleteArray (void **pInstanceArray) const |
Friends | |
class | Struct |
class | Union |
|
Returns the access type of the Struct within the context in which it is defined.
|
|
If the -r option was specified to the xrttigen program, then C++ RTTI type_info objects will be associated with each Structure. This method will then return the type_info object associated with the C++ class/struct/union described by this Structure. If -r was not used with xrttigen, then C++ RTTI is not supported, and this method will return NULL.
|
|
This is the number of base structures of this Structure. Base structures are, in essential, base classes, although they are not necessarily classes; they may be structs or unions as well. The Base class identifies both the base Structure, and the offset from this structure to the base class.
|
|
Returns a base structure of this Structure.
|
|
Returns the number of Fields in this Context.
|
|
Returns a Field of this Context. These are in the same order as in defined in the C++ class described by this Context. The number of Fields in this Context is given by the return value of GetFieldCount().
|
|
Returns true if the Structure is anonymous. Anonymous structures have no type name and thus cannot be instantiated. Therefore, the Constructors will not be invokeable; and the Create and CreateArray methods will return NULL.
|
|
This is the number of constructors of this Structure.
|
|
Returns a constructor of this Structure.
|
|
Returns true if this Structure has a destructor, false if not.
|
|
Returns true if this Structure has a destructor.
|
|
Returns a newly-constructed object of this Structure type; the default constructor is used. The returned object must be deleted using the Delete() method. If the Structure is abstract or anonymous, returns NULL.
|
|
Returns a newly-constructed array of objects of this Structure type; the default array constructor is used. The returned array must be deleted using the DeleteArray() method. If the Structure is abstract, or anonymous, returns NULL.
|
|
Deletes an object created by the Create() method.
|
|
Deletes an array of objects created by the CreateArray() method.
|