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

Public Member Functions

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

Static Public Attributes

 notify = directNotify.newCategory('ObjectPool')
 

Detailed Description

manipulate a pool of Python objects

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  objects 
)

Member Function Documentation

◆ __len__()

def __len__ (   self)

◆ destroy()

def destroy (   self)

◆ diff()

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

◆ getObjsOfType()

def getObjsOfType (   self,
  type 
)

◆ getTypes()

def getTypes (   self)

◆ printObjsByType()

def printObjsByType (   self)

◆ printObjsOfType()

def printObjsOfType (   self,
  type 
)

◆ printReferrers()

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

◆ typeFreqStr()

def typeFreqStr (   self)

Member Data Documentation

◆ notify

notify = directNotify.newCategory('ObjectPool')
static