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. More...

Inheritance diagram for MemoryBase:
NotifyCategory PointerToVoid ReferenceCount TypedObject TypeRegistry char int PointerToBaseConnection PointerToBaseReferenceCountedVectordouble PointerToBaseReferenceCountedVectorfloat PointerToBaseReferenceCountedVectorint PointerToBaseReferenceCountedVectorMat3 PointerToBaseReferenceCountedVectorMat4 PointerToBaseReferenceCountedVectorVBase2 PointerToBaseReferenceCountedVectorVBase3 PointerToBaseReferenceCountedVectorVBase4 WeakPointerToVoid Buffer ClockObject Connection CullResult GeomVertexArrayDataHandle GraphicsEngine HTTPClient Light ModelReference ModelRoot.ModelReference MouseWatcherGroup Multifile NodeReferenceCount NurbsCurveEvaluator NurbsCurveResult NurbsSurfaceEvaluator NurbsSurfaceResult PandaNode ParametricCurveCollection PartBundleHandle PNMBrush PreparedGraphicsObjects PStatCollectorForwardBase RecorderBase SceneSetup TexturePeeker TypedReferenceCount TypedWritableReferenceCount VertexDataBlock VirtualFileList CallbackData CollisionRecorder Datagram EventHandler GeoMipTerrain LoaderFileType MeshDrawer MeshDrawer2D SavedContext ShaderGenerator Socket_IP TypedReferenceCount TypedWritable

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).

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties