
Weak pointer class (pointer to a CL_SharedPtr object that dont increase reference count). More...
Derived from: | public CL_SharedPtr_Link |
Derived by: | None |
Group: | System (Core) |
#include <ClanLib/core.h>
Class Members:
Disconnect from linked list and unset the pointer. | |
Tests if the pointer is unset, or the weak link is no longer valid. | |
Retrieves the pointer. | |
Detailed description:
Use CL_WeakPtr when you want to have a pointer that is reference counted by CL_SharedPtr but want a pointer that dont increase the reference count.The purpose of CL_WeakPtr is to avoid circular loop issues. By using CL_WeakPtr you can construct new CL_SharedPtr'ed objects based on the weak pointer.