Classes | |
class | Context |
class | Namespace |
class | Structure |
class | Base |
class | Union |
class | Struct |
class | Class |
class | Member |
class | Field |
class | Argument |
class | DestructorSignature |
class | ConstructorSignature |
class | MethodSignature |
class | Destructor |
class | Constructor |
class | Method |
class | Type |
class | ArrayOrPointer |
class | Array |
class | Pointer |
class | Enumeration |
class | EnumerationValue |
class | TypeEnumeration |
class | TypeFunction |
class | TypeStructure |
class | ContextSet |
Typedefs | |
typedef uint32_t | u32 |
typedef int32_t | s32 |
typedef enum Xrtti::AccessType | AccessType |
Enumerations | |
enum | AccessType { AccessType_Public, AccessType_Protected, AccessType_Private } |
Functions | |
bool | Equals (const Context &c1, const Context &c2) |
bool | Equals (const Type &type1, const Type &type2) |
u32 | GetContextCount () |
const Context * | GetContext (u32 index) |
const Context * | LookupContext (const char *pFullName) |
const Structure * | LookupStructure (const std::type_info &typeinfo) |
ContextSet * | CreateContextSet () |
typedef uint32_t Xrtti::u32 |
************************************************************************** Short names for fixed-width integer types 32-bit unsigned integer
typedef int32_t Xrtti::s32 |
32-bit signed integer
typedef enum Xrtti::AccessType Xrtti::AccessType |
************************************************************************** AccessType defines the access types of C++, which are used to define how code may access classes, structs, methods, fields, and enumerations
enum Xrtti::AccessType |
************************************************************************** AccessType defines the access types of C++, which are used to define how code may access classes, structs, methods, fields, and enumerations
bool Xrtti::Equals | ( | const Context & | c1, | |
const Context & | c2 | |||
) |
************************************************************************** Utility helper functions The Context equality operator (operator ==) only tests fields of Context for equality; since Context is only a base class and the specific subclass of the instance has many more fields, a test of equality of a Context is not sufficient to demonstrate that the actual objects are equal. The Equals method tests the most specific subclass of the Context for equality, which means testing the entirety of the object. This is the correct method to use for testing equality between two arbitrary Contexts.
c1 | is the first Context to test for equality (against c2) | |
c2 | is the second Context to test for equality (against c1) |
bool Xrtti::Equals | ( | const Type & | type1, | |
const Type & | type2 | |||
) |
The Type equality operator (operator ==) only tests fields of Type for equality; since Type is only a base class and the specific subclass of the instance has many more fields, a test of equality of a Type is not sufficient to demonstrate that the actual objects are equal. The Equals method tests the most specific subclass of the Type for equality, which means testing the entirety of the object. This is the correct method to use for testing equality between two arbitrary Types.
type1 | is the first Type to test for equality (against c2) | |
type2 | is the second Type to test for equality (against c1) |
u32 Xrtti::GetContextCount | ( | ) |
************************************************************************** Xrtti API Returns the number of compiled Contexts - these are the Contexts defining classes compiled into the running application, or into any library linked into the currently running application.
const Context* Xrtti::GetContext | ( | u32 | index | ) |
Returns a compiled Context. The total number of available compiled contexts is available via a call to GetCompiledContextCount().
index | is the index of the compiled Context to get; this value must be less than the number of Contexts returned by GetCompiledContextCount(). |
const Context* Xrtti::LookupContext | ( | const char * | pFullName | ) |
const Structure* Xrtti::LookupStructure | ( | const std::type_info & | typeinfo | ) |
Looks up a Structure by C++ RTTI type_info, and returns it. This only works if the Structure was generated by xrttigen with the -r option enabled. Returns NULL if there is no such registered Structure.
typeinfo | is the C++ RTTI type_info to fetch the corresponding Structure for. Only works if xrttigen had the -r option specified. |
ContextSet* Xrtti::CreateContextSet | ( | ) |
Creates and returns a new ContextSet, which can then be used to parse header files and examine the resulting Xrtti Contexts and their associated objects.