direct.showbase.ObjectPool

from direct.showbase.ObjectPool import Diff, ObjectPool

Contains the ObjectPool utility class.

Inheritance diagram

Inheritance diagram of direct.showbase.ObjectPool

class Diff(lost, gained)[source]

Bases: object

__init__(self, lost, gained)[source]
printOut(self, full=False)[source]
class ObjectPool(objects)[source]

Bases: object

manipulate a pool of Python objects

__init__(self, objects)[source]
destroy(self)[source]
diff(self, other)[source]

print difference between this pool and ‘other’ pool

getObjsOfType(self, type)[source]
getTypes(self)[source]
notify = <direct.directnotify.Notifier.Notifier object>
printObjsByType(self)[source]
printObjsOfType(self, type)[source]
printReferrers(self, numEach=3)[source]

referrers of the first few of each type of object

typeFreqStr(self)[source]