#include <class.h>
Inheritance diagram for RTTIClassDescriptor:
Public Types | |
typedef RTTIFieldDescriptor *(* | RTTIDescribeFieldsFunc )() |
typedef RTTIMethodDescriptor *(* | RTTIDescribeMethodsFunc )() |
typedef void(* | RTTIDefaultConstructor )(void *ptr) |
typedef void *(* | RTTICreateInstanceFunc )() |
enum | TypeTag { RTTI_UNKNOWN, RTTI_VOID, RTTI_CHAR, RTTI_UCHAR, RTTI_SCHAR, RTTI_SHORT, RTTI_USHORT, RTTI_INT, RTTI_UINT, RTTI_LONG, RTTI_ULONG, RTTI_FLOAT, RTTI_DOUBLE, RTTI_BOOL, RTTI_ARRAY, RTTI_STRUCT, RTTI_PTR, RTTI_DERIVED, RTTI_METHOD } |
Public Methods | |
void | getTypeName (char *buf) |
RTTIClassDescriptor * | getNext () |
RTTIFieldDescriptor ** | getFields () |
int | getNumberOfFields () |
char const * | getName () |
int | getSize () |
int | getFlags () |
void * | newInstance () |
RTTIClassDescriptor ** | getBaseClasses () |
int | getNumberOfBaseClasses () |
RTTIMethodDescriptor ** | getMethods () |
int | getNumberOfMethods () |
RTTIFieldDescriptor * | findField (char const *name) |
RTTIMethodDescriptor * | findMethod (char const *name) |
RTTIClassDescriptor (char const *name, int size, RTTIDescribeFieldsFunc describeFieldsFunc, RTTIDescribeMethodsFunc describeMethodsFunc, RTTICreateInstanceFunc createInstanceFunc, int flags) | |
RTTIClassDescriptor (char const *name, int size, int flags) | |
~RTTIClassDescriptor () | |
int | getTag () |
bool | isBuiltin () |
bool | isScalar () |
bool | isArray () |
bool | isPointer () |
bool | isClass () |
bool | isBaseClass () |
Static Public Attributes | |
RTTIType | voidType |
RTTIType | charType |
RTTIType | ucharType |
RTTIType | scharType |
RTTIType | shortType |
RTTIType | ushortType |
RTTIType | intType |
RTTIType | uintType |
RTTIType | longType |
RTTIType | ulongType |
RTTIType | floatType |
RTTIType | doubleType |
RTTIType | boolType |
RTTIType | unknownType |
Protected Methods | |
void | buildClassDescriptor () |
void | destroy () |
Protected Attributes | |
RTTIClassDescriptor * | next |
RTTIClassDescriptor * | collisionChain |
RTTIMethodDescriptor * | methodList |
RTTIMethodDescriptor ** | methods |
int | nMethods |
RTTIFieldDescriptor * | fieldList |
RTTIFieldDescriptor ** | fields |
int | nFields |
int | flags |
int | size |
bool | initialized |
char const * | name |
unsigned | hashCode |
int | nBaseClasses |
RTTIClassDescriptor ** | baseClasses |
RTTIDefaultConstructor | defaultConstructor |
RTTICreateInstanceFunc | createInstanceFunc |
int | tag |
Friends | |
class | RTTIRepository |
class | RTTIBfdRepository |
class | RTTIClassDescriptor |
class | RTTIFieldDescriptor |
class | RTTIMethodDescriptor |
|
Create and initialize class descriptor from information provided by programmer (typdecl.h) This constructor requires functions returning list of components instead of lists themselve, because these component descriptors should be created in context this DLL.
|
|
Create class descriptor for class loaded from debug information
|
|
Class descriptor desctructor |
|
Find field by name
|
|
Find method by name
|
|
Get base classes of this class
|
|
Get array of class fields.
|
|
Get class flags
|
|
Get array with the clas methods
|
|
Get name of the class
|
|
Get next class. All classes in repository are linked in L1 list. Repository
|
|
Get number of base classes
|
|
Get number of fields in the class
|
|
Get number of methods in the class
|
|
Get size f class instance
|
|
Get type tag
|
|
Get type name
Reimplemented from RTTIType. |
|
Checks whether it is array type |
|
Checks whether type represents inhertited base class |
|
Checks whether it is built-in type |
|
Checks whether it is class or struct type |
|
Checks whether it is pointer type |
|
Checks whether it is integer of floating point type |
|
Createnew instance of the class
|