#include <ptr.h>
Public Member Functions | |
| WeakPtr (std::nullptr_t) | |
| WeakPtr (const WeakPtr< T > &r) | |
| template<class T2 > | |
| WeakPtr (const WeakPtr< T2 > &r) | |
| template<class T2 > | |
| WeakPtr (const SharedPtr< T2 > &r) | |
| template<class T2 > | |
| WeakPtr< T2 > | staticCast () const |
| template<class T2 > | |
| WeakPtr< T2 > | dynamicCast () const |
| template<class T2 > | |
| WeakPtr< T2 > | constCast () const |
| template<class T2 > | |
| WeakPtr< T2 > | reinterpretCast () const |
| SharedPtr< T > | lock () const |
| int | refCount () const |
| bool | expired () const |
| template<class T2 > | |
| bool | owner_before (const WeakPtr< T2 > &other) const |
| template<class T2 > | |
| bool | owner_before (const SharedPtr< T2 > &other) const |
| WeakPtr< T > & | operator= (const WeakPtr< T > &r) |
| template<class T2 > | |
| WeakPtr< T > & | operator= (const WeakPtr< T2 > &r) |
| template<class T2 > | |
| WeakPtr< T > & | operator= (const SharedPtr< T2 > &r) |
| void | reset () |
| template<class T2 > | |
| void | reset (const SharedPtr< T2 > &r) |
| template<class T2 > | |
| void | reset (const WeakPtr< T2 > &r) |
Implements a smart pointer that holds a non-owning ("weak") reference to a pointer. It needs to be converted to a SharedPtr to access it.
Performs the equivalent of static_cast to a new pointer type
|
inline |
Performs the equivalent of dynamic_cast to a new pointer type
Performs the equivalent of const_cast to a new pointer type
|
inline |
Performs the equivalent of const_cast to a new pointer type
|
inline |
Creates a SharedPtr that manages the referenced object
|
inline |
Returns the number of strong references to the object.
|
inline |
Returns whether the referenced object isn't valid
|
inline |
Returns whether this precedes another weak pointer in owner-based order
|
inline |
Returns whether this precedes a shared pointer in owner-based order
|
inline |
Resets the object to a NULL pointer.
|
inline |
Resets the object to the specified shared pointer
|
inline |
Resets the object to the specified weak pointer