# TypeRegistry

from pandac.PandaModules import TypeRegistry

Class : TypeRegistry
Description : 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.

## Inheritance:

TypeRegistry: MemoryBase
MemoryBase:

## Methods of TypeRegistry:

findType
getChildClass
getName
getNumChildClasses
getNumParentClasses
getNumRootClasses
getNumTypehandles
getParentClass
getParentTowards
getRootClass
getTypehandle
isDerivedFrom
ptr
reregisterTypes
write

findType TypeHandle TypeRegistry::find_type(string const &name) const; Undocumented function.

getChildClass TypeHandle TypeRegistry::get_child_class(TypeHandle child, int index) const; Undocumented function.

getName string TypeRegistry::get_name(TypeHandle type, TypedObject *object) const; Undocumented function.

getNumChildClasses int TypeRegistry::get_num_child_classes(TypeHandle child, TypedObject *child_object) const; Undocumented function.

getNumParentClasses int TypeRegistry::get_num_parent_classes(TypeHandle child, TypedObject *child_object) const; Undocumented function.

getNumRootClasses int TypeRegistry::get_num_root_classes(void); Undocumented function.

getNumTypehandles int TypeRegistry::get_num_typehandles(void); Undocumented function.

getParentClass TypeHandle TypeRegistry::get_parent_class(TypeHandle child, int index) const; Undocumented function.

getParentTowards TypeHandle TypeRegistry::get_parent_towards(TypeHandle child, TypeHandle base, TypedObject *child_object); Undocumented function.

getRootClass TypeHandle TypeRegistry::get_root_class(int n); Undocumented function.

getTypehandle TypeHandle TypeRegistry::get_typehandle(int n); Undocumented function.

isDerivedFrom bool TypeRegistry::is_derived_from(TypeHandle child, TypeHandle base, TypedObject *child_object); Undocumented function.

ptr static TypeRegistry *TypeRegistry::ptr(void); ptr() returns the pointer to the global TypeRegistry object.

reregisterTypes static void TypeRegistry::reregister_types(void); Undocumented function.

write void TypeRegistry::write(ostream &out) const; Undocumented function.