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

This is the specialization of PointerToVoid for weak pointers. It needs an additional flag to indicate that the pointer has been deleted. More...

Inheritance diagram for WeakPointerToVoid:
PointerToVoid MemoryBase

Public Member Functions

bool isValidPointer ()
 Returns true if the pointer is not null and the object has not been deleted. More...
 
bool wasDeleted ()
 Returns true if the object we are pointing to has been deleted, false otherwise. More...
 
- Public Member Functions inherited from PointerToVoid
size_t getHash ()
 
bool isNull ()
 Returns true if the PointerTo is a NULL pointer, false otherwise. (Direct comparison to a NULL pointer also works.) More...
 

Detailed Description

This is the specialization of PointerToVoid for weak pointers. It needs an additional flag to indicate that the pointer has been deleted.

Member Function Documentation

◆ isValidPointer()

bool isValidPointer ( )

Returns true if the pointer is not null and the object has not been deleted.

◆ wasDeleted()

bool wasDeleted ( )

Returns true if the object we are pointing to has been deleted, false otherwise.