Panda3D
Public Member Functions | List of all members
PointerToVoid Class Reference

This is the non-template part of the base class for PointerTo and ConstPointerTo. More...

Inheritance diagram for PointerToVoid:
PointerToBaseConnection PointerToBaseReferenceCountedVectorDouble PointerToBaseReferenceCountedVectorFloat PointerToBaseReferenceCountedVectorInt PointerToBaseReferenceCountedVectorLMatrix3d PointerToBaseReferenceCountedVectorLMatrix3f PointerToBaseReferenceCountedVectorLVecBase2d PointerToBaseReferenceCountedVectorLVecBase2f PointerToBaseReferenceCountedVectorLVecBase2i PointerToBaseReferenceCountedVectorLVecBase3d PointerToBaseReferenceCountedVectorLVecBase3f PointerToBaseReferenceCountedVectorLVecBase3i PointerToBaseReferenceCountedVectorUnalignedLMatrix4d PointerToBaseReferenceCountedVectorUnalignedLMatrix4f PointerToBaseReferenceCountedVectorUnalignedLVecBase4d PointerToBaseReferenceCountedVectorUnalignedLVecBase4f PointerToBaseReferenceCountedVectorUnalignedLVecBase4i PointerToBaseReferenceCountedVectorUnsignedChar PointerToBaseReferenceCountedVectorUshort PointerToBaseVirtualFileMount WeakPointerToVoid

Public Member Functions

int getHash ()
 
bool isNull ()
 Returns true if the PointerTo is a NULL pointer, false otherwise. More...
 

Detailed Description

This is the non-template part of the base class for PointerTo and ConstPointerTo.

It is necessary so we can keep a pointer to a non-template class within the ReferenceCount object, to implement weak reference pointers–we need to have something to clean up when the ReferenceCount object destructs.

This is the base class for PointerToBase<T>.

Member Function Documentation

◆ getHash()

int getHash ( )

◆ isNull()

bool isNull ( )

Returns true if the PointerTo is a NULL pointer, false otherwise.

(Direct comparison to a NULL pointer also works.)