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

A base class for things which need to inherit from both TypedObject and from ReferenceCount. It's convenient to define this intermediate base class instead of multiply inheriting from the two classes each time they are needed, so that we can sensibly pass around pointers to things which are both TypedObjects and ReferenceCounters. More...

Inheritance diagram for TypedReferenceCount:
TypedObject ReferenceCount MemoryBase MemoryBase BulletConstraint BulletShape BulletTriangleMesh BulletVehicle BulletWorld AnimControl AsyncTaskBase AsyncTaskChain AsyncTaskManager AudioManager AudioSound AuxSceneData BoundingVolume Buffer ButtonMap CallbackObject ClientBase CollisionHandler CullTraverser DisplayRegionBase Event FileReference FilterProperties GraphicsDevice GraphicsPipe Loader MovieVideoCursor::Buffer OSHandle RecorderController SceneSetup ShaderGenerator TextFont TextGlyph Thread VirtualFile VirtualFileMount WindowHandle WindowHandle::OSHandle CInterval LerpBlendType EggObject EggUserData OdeCollisionEntry OdeContact OdeContactGeom OdeMass OdeTriMeshData BaseForce Physical PhysicsObject

Static Public Member Functions

static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 

Additional Inherited Members

- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 Derived classes should override this function to return get_class_type(). More...
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
 
bool unref ()
 Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
 

Detailed Description

A base class for things which need to inherit from both TypedObject and from ReferenceCount. It's convenient to define this intermediate base class instead of multiply inheriting from the two classes each time they are needed, so that we can sensibly pass around pointers to things which are both TypedObjects and ReferenceCounters.

See also TypedObject for detailed instructions.

Member Function Documentation

◆ getClassType()

static TypeHandle getClassType ( )
static