# WeakPointerToVoid

from pandac.PandaModules import WeakPointerToVoid

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

## Inheritance:

WeakPointerToVoid: PointerToVoid
PointerToVoid:

## Methods of WeakPointerToVoid:

isValidPointer
wasDeleted

## Methods of PointerToVoid:

getHash
isNull

isValidPointer bool WeakPointerToVoid::is_valid_pointer(void) const; Description: Returns true if the pointer is not null and the object has not been deleted.

wasDeleted bool WeakPointerToVoid::was_deleted(void) const; Description: Returns true if the object we are pointing to has been deleted, false otherwise.

getHash unsigned int PointerToVoid::get_hash(void) const; Description:

isNull bool PointerToVoid::is_null(void) const; Description: Returns true if the PointerTo is a NULL pointer, false otherwise. (Direct comparison to a NULL pointer also works.)