Panda3D
Public Member Functions | Static Public Member Functions | List of all members
TypeRegistry Class Reference

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...

Inheritance diagram for TypeRegistry:
MemoryBase

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 ()
 

Detailed 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.

Member Function Documentation

◆ findType()

TypeHandle findType ( str  name)

◆ findTypeById()

TypeHandle findTypeById ( int  id)

◆ getChildClass()

TypeHandle getChildClass ( TypeHandle  child,
int  index 
)

◆ getName()

str getName ( TypeHandle  type,
TypedObject  object 
)

◆ getNumChildClasses()

int getNumChildClasses ( TypeHandle  child,
TypedObject  child_object 
)

◆ getNumParentClasses()

int getNumParentClasses ( TypeHandle  child,
TypedObject  child_object 
)

◆ getNumRootClasses()

int getNumRootClasses ( )

◆ getNumTypehandles()

int getNumTypehandles ( )

◆ getParentClass()

TypeHandle getParentClass ( TypeHandle  child,
int  index 
)

◆ getParentTowards()

TypeHandle getParentTowards ( TypeHandle  child,
TypeHandle  base,
TypedObject  child_object 
)

◆ getRootClass()

TypeHandle getRootClass ( int  n)

◆ getRootClasses()

list getRootClasses ( )

◆ getTypehandle()

TypeHandle getTypehandle ( int  n)

◆ getTypehandles()

list getTypehandles ( )

◆ isDerivedFrom()

bool isDerivedFrom ( TypeHandle  child,
TypeHandle  base,
TypedObject  child_object 
)

◆ ptr()

static TypeRegistry ptr ( )
static

ptr() returns the pointer to the global TypeRegistry object.

◆ reregisterTypes()

static reregisterTypes ( )
static

◆ write()

write ( Ostream  out)