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__(lost, gained)[source]
printOut(full=False)[source]
class ObjectPool(objects)[source]

Bases: object

manipulate a pool of Python objects

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

print difference between this pool and ‘other’ pool

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

referrers of the first few of each type of object

typeFreqStr()[source]