Class for objects providing support for weak pointers. More...
#include <weakptr.h>
Public Member Functions | |
~WeakPointable () | |
Deconstruct the object, set all weak pointers to NULL. More... | |
void | AddWeakPointer (WeakPointable **weakptr) |
Add a new weak pointer. More... | |
void | RemoveWeakPointer (WeakPointable **weakptr) |
Remove the weak pointer from the list of weak pointers. More... | |
Private Attributes | |
std::set< WeakPointable ** > | pointers |
Class for objects providing support for weak pointers.
This class allows for the registration of certain pointers as weak, which will cause them to be set to NULL when the destructor of the object is called.
|
inline |
Deconstruct the object, set all weak pointers to NULL.
References pointers.
|
inline |
Add a new weak pointer.
References pointers.
|
inline |
Remove the weak pointer from the list of weak pointers.
References pointers.
|
private |
Referenced by AddWeakPointer(), RemoveWeakPointer(), and ~WeakPointable().