Panda3D
MemoryBase Class Reference

This class is intended to be the base class of all objects in Panda that might be allocated and deleted via the new and delete operators. It redefines these operators to provide some memory tracking support. More...

Inheritance diagram for MemoryBase:
Namable NotifyCategory PointerToVoid ReferenceCount TypedObject TypeRegistry EggAttributes AdaptiveLru AnimControl AnimGroup AsyncTaskBase AsyncTaskChain AsyncTaskManager CardMaker CollisionTraverser FisheyeMaker FreetypeFont HeightfieldTesselator LineSegs Loader Material MouseWatcherRegion MovieAudio MovieVideo PandaNode PartGroup SimpleLru TextFont Texture Thread EggNamedObject PointerToBaseConnection PointerToBaseReferenceCountedVectorDouble PointerToBaseReferenceCountedVectorFloat PointerToBaseReferenceCountedVectorInt PointerToBaseReferenceCountedVectorLMatrix3d PointerToBaseReferenceCountedVectorLMatrix3f PointerToBaseReferenceCountedVectorLVecBase2d PointerToBaseReferenceCountedVectorLVecBase2f PointerToBaseReferenceCountedVectorLVecBase2i PointerToBaseReferenceCountedVectorLVecBase3d PointerToBaseReferenceCountedVectorLVecBase3f PointerToBaseReferenceCountedVectorLVecBase3i PointerToBaseReferenceCountedVectorUnalignedLMatrix4d PointerToBaseReferenceCountedVectorUnalignedLMatrix4f PointerToBaseReferenceCountedVectorUnalignedLVecBase4d PointerToBaseReferenceCountedVectorUnalignedLVecBase4f PointerToBaseReferenceCountedVectorUnalignedLVecBase4i PointerToBaseReferenceCountedVectorUnsignedChar PointerToBaseReferenceCountedVectorUshort WeakPointerToVoid Buffer ClockObject Connection CullResult GeomVertexArrayDataHandle GraphicsEngine ModelReference ModelRoot::ModelReference MouseWatcherGroup Multifile NodeReferenceCount NurbsCurveEvaluator NurbsCurveResult NurbsSurfaceEvaluator NurbsSurfaceResult ParametricCurveCollection PartBundleHandle PNMBrush PreparedGraphicsObjects PStatCollectorForwardBase TexturePeeker TypedReferenceCount TypedWritableReferenceCount VertexDataBlock VirtualFileList BaseIntegrator BaseParticleEmitter BaseParticleFactory BaseParticleRenderer ColorInterpolationManager ColorInterpolationSegment SpriteAnim CallbackData CollisionRecorder Datagram EventHandler GeoMipTerrain LoaderFileType MeshDrawer MeshDrawer2D SavedContext SocketIP TypedReferenceCount TypedWritable OdeBody OdeGeom OdeJoint OdeJointGroup OdeSpace OdeSurfaceParameters OdeWorld TypedSkel EggPrimitive EggVertex

Detailed Description

This class is intended to be the base class of all objects in Panda that might be allocated and deleted via the new and delete operators. It redefines these operators to provide some memory tracking support.

We used to try to override the global operator new and delete methods, but that seems to cause problems when including header files for C++-based system libraries (such as are found on OSX).