Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ObjectPool Class Reference

Public Member Functions

 __init__ (self, objects)
 
 __len__ (self)
 
 destroy (self)
 
 diff (self, other)
 
 getObjsOfType (self, type)
 
 getTypes (self)
 
 printObjsByType (self)
 
 printObjsOfType (self, type)
 
 printReferrers (self, numEach=3)
 
 typeFreqStr (self)
 

Static Public Attributes

 notify = directNotify.newCategory('ObjectPool')
 

Protected Member Functions

 _getInternalObjs (self)
 

Protected Attributes

 _count2types
 
 _len2obj
 
 _objs
 
 _type2objs
 

Detailed Description

manipulate a pool of Python objects

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
objects )

Member Function Documentation

◆ __len__()

__len__ ( self)

◆ _getInternalObjs()

_getInternalObjs ( self)
protected

◆ destroy()

destroy ( self)

◆ diff()

diff ( self,
other )
print difference between this pool and 'other' pool

◆ getObjsOfType()

getObjsOfType ( self,
type )

◆ getTypes()

getTypes ( self)

◆ printObjsByType()

printObjsByType ( self)

◆ printObjsOfType()

printObjsOfType ( self,
type )

◆ printReferrers()

printReferrers ( self,
numEach = 3 )
referrers of the first few of each type of object

◆ typeFreqStr()

typeFreqStr ( self)

Member Data Documentation

◆ _count2types

_count2types
protected

◆ _len2obj

_len2obj
protected

◆ _objs

_objs
protected

◆ _type2objs

_type2objs
protected

◆ notify

notify = directNotify.newCategory('ObjectPool')
static