Weak pointer class (pointer to a CL_SharedPtr object that dont increase reference count).
More...
#include <weakptr.h>
List of all members.
Detailed Description
template<typename Type>
class CL_WeakPtr< Type >
Weak pointer class (pointer to a CL_SharedPtr object that dont increase reference count).
Use CL_WeakPtr when you want to have a pointer that is reference counted by CL_SharedPtr but want a pointer that don't 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.
Constructor & Destructor Documentation
Member Function Documentation
Retrieves the pointer.
- Returns:
- The pointer (May be NULL, if it has not been set or the weak link is no longer valid)
template<typename Type>
| const Type* CL_WeakPtr< Type >::get |
( |
|
) |
const [inline] |
Retrieves the pointer.
- Returns:
- The pointer (May be NULL, if it has not been set or the weak link is no longer valid)
template<typename Type>
| bool CL_WeakPtr< Type >::is_invalid_weak_link |
( |
|
) |
const [inline] |
template<typename Type>
| bool CL_WeakPtr< Type >::is_null |
( |
|
) |
const [inline] |
Tests if the pointer is unset, or the weak link is no longer valid.
- Returns:
- true, pointer not set (or not valid)
template<typename Type>
template<typename InitType >
template<typename Type>
template<typename InitType >
template<typename Type>
| CL_WeakPtr< Type >::operator const Type * |
( |
|
) |
const [inline] |
template<typename Type>
template<typename OtherType >
| bool CL_WeakPtr< Type >::operator!= |
( |
OtherType * |
other |
) |
const [inline] |
template<typename Type>
| const Type* CL_WeakPtr< Type >::operator-> |
( |
|
) |
const [inline] |
template<typename Type>
template<typename OtherType >
| bool CL_WeakPtr< Type >::operator< |
( |
OtherType * |
other |
) |
const [inline] |
template<typename Type>
template<typename OtherType >
| bool CL_WeakPtr< Type >::operator<= |
( |
OtherType * |
other |
) |
const [inline] |
template<typename Type>
template<typename OtherType >
| bool CL_WeakPtr< Type >::operator== |
( |
OtherType * |
other |
) |
const [inline] |
template<typename Type>
template<typename OtherType >
| bool CL_WeakPtr< Type >::operator> |
( |
OtherType * |
other |
) |
const [inline] |
template<typename Type>
template<typename OtherType >
| bool CL_WeakPtr< Type >::operator>= |
( |
OtherType * |
other |
) |
const [inline] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: