Panda3D
|
The TypeRegistry class maintains all the assigned TypeHandles in a given system. There should be only one TypeRegistry class during the lifetime of the application. It will be created on the local heap initially, and it should be migrated to shared memory as soon as shared memory becomes available. More...
Public Member Functions | |
TypeHandle | findType (str name) |
TypeHandle | findTypeById (int id) |
TypeHandle | getChildClass (TypeHandle child, int index) |
str | getName (TypeHandle type, TypedObject object) |
int | getNumChildClasses (TypeHandle child, TypedObject child_object) |
int | getNumParentClasses (TypeHandle child, TypedObject child_object) |
int | getNumRootClasses () |
int | getNumTypehandles () |
TypeHandle | getParentClass (TypeHandle child, int index) |
TypeHandle | getParentTowards (TypeHandle child, TypeHandle base, TypedObject child_object) |
TypeHandle | getRootClass (int n) |
list | getRootClasses () |
TypeHandle | getTypehandle (int n) |
list | getTypehandles () |
bool | isDerivedFrom (TypeHandle child, TypeHandle base, TypedObject child_object) |
write (Ostream out) | |
Static Public Member Functions | |
static TypeRegistry | ptr () |
ptr() returns the pointer to the global TypeRegistry object. More... | |
static | reregisterTypes () |
The TypeRegistry class maintains all the assigned TypeHandles in a given system. There should be only one TypeRegistry class during the lifetime of the application. It will be created on the local heap initially, and it should be migrated to shared memory as soon as shared memory becomes available.
TypeHandle findType | ( | str | name | ) |
TypeHandle findTypeById | ( | int | id | ) |
TypeHandle getChildClass | ( | TypeHandle | child, |
int | index | ||
) |
str getName | ( | TypeHandle | type, |
TypedObject | object | ||
) |
int getNumChildClasses | ( | TypeHandle | child, |
TypedObject | child_object | ||
) |
int getNumParentClasses | ( | TypeHandle | child, |
TypedObject | child_object | ||
) |
int getNumRootClasses | ( | ) |
int getNumTypehandles | ( | ) |
TypeHandle getParentClass | ( | TypeHandle | child, |
int | index | ||
) |
TypeHandle getParentTowards | ( | TypeHandle | child, |
TypeHandle | base, | ||
TypedObject | child_object | ||
) |
TypeHandle getRootClass | ( | int | n | ) |
list getRootClasses | ( | ) |
TypeHandle getTypehandle | ( | int | n | ) |
list getTypehandles | ( | ) |
bool isDerivedFrom | ( | TypeHandle | child, |
TypeHandle | base, | ||
TypedObject | child_object | ||
) |
|
static |
ptr() returns the pointer to the global TypeRegistry object.
|
static |
write | ( | Ostream | out | ) |