Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fxcrt::WeakPtr< T, D > Class Template Reference

#include <weak_ptr.h>

+ Collaboration diagram for fxcrt::WeakPtr< T, D >:

Public Member Functions

 WeakPtr ()=default
 
 WeakPtr (const WeakPtr &that)
 
 WeakPtr (WeakPtr &&that) noexcept
 
 WeakPtr (std::unique_ptr< T, D > pObj)
 
 WeakPtr (std::nullptr_t arg)
 
 operator bool () const
 
bool HasOneRef () const
 
T * operator-> ()
 
const T * operator-> () const
 
WeakPtroperator= (const WeakPtr &that)
 
bool operator== (const WeakPtr &that) const
 
bool operator!= (const WeakPtr &that) const
 
T * Get () const
 
void DeleteObject ()
 
void Reset ()
 
void Reset (std::unique_ptr< T, D > pObj)
 
void Swap (WeakPtr &that)
 

Detailed Description

template<class T, class D = std::default_delete<T>>
class fxcrt::WeakPtr< T, D >

Definition at line 20 of file weak_ptr.h.

Constructor & Destructor Documentation

◆ WeakPtr() [1/5]

template<class T , class D = std::default_delete<T>>
fxcrt::WeakPtr< T, D >::WeakPtr ( )
default

◆ WeakPtr() [2/5]

template<class T , class D = std::default_delete<T>>
fxcrt::WeakPtr< T, D >::WeakPtr ( const WeakPtr< T, D > & that)
inline

Definition at line 23 of file weak_ptr.h.

◆ WeakPtr() [3/5]

template<class T , class D = std::default_delete<T>>
fxcrt::WeakPtr< T, D >::WeakPtr ( WeakPtr< T, D > && that)
inlinenoexcept

Definition at line 24 of file weak_ptr.h.

References fxcrt::WeakPtr< T, D >::Swap().

+ Here is the call graph for this function:

◆ WeakPtr() [4/5]

template<class T , class D = std::default_delete<T>>
fxcrt::WeakPtr< T, D >::WeakPtr ( std::unique_ptr< T, D > pObj)
inlineexplicit

Definition at line 25 of file weak_ptr.h.

◆ WeakPtr() [5/5]

template<class T , class D = std::default_delete<T>>
fxcrt::WeakPtr< T, D >::WeakPtr ( std::nullptr_t arg)
inline

Definition at line 30 of file weak_ptr.h.

Member Function Documentation

◆ DeleteObject()

template<class T , class D = std::default_delete<T>>
void fxcrt::WeakPtr< T, D >::DeleteObject ( )
inline

Definition at line 46 of file weak_ptr.h.

◆ Get()

template<class T , class D = std::default_delete<T>>
T * fxcrt::WeakPtr< T, D >::Get ( ) const
inline

Definition at line 45 of file weak_ptr.h.

◆ HasOneRef()

template<class T , class D = std::default_delete<T>>
bool fxcrt::WeakPtr< T, D >::HasOneRef ( ) const
inline

Definition at line 33 of file weak_ptr.h.

◆ operator bool()

template<class T , class D = std::default_delete<T>>
fxcrt::WeakPtr< T, D >::operator bool ( ) const
inlineexplicit

Definition at line 32 of file weak_ptr.h.

◆ operator!=()

template<class T , class D = std::default_delete<T>>
bool fxcrt::WeakPtr< T, D >::operator!= ( const WeakPtr< T, D > & that) const
inline

Definition at line 43 of file weak_ptr.h.

◆ operator->() [1/2]

template<class T , class D = std::default_delete<T>>
T * fxcrt::WeakPtr< T, D >::operator-> ( )
inline

Definition at line 34 of file weak_ptr.h.

◆ operator->() [2/2]

template<class T , class D = std::default_delete<T>>
const T * fxcrt::WeakPtr< T, D >::operator-> ( ) const
inline

Definition at line 35 of file weak_ptr.h.

◆ operator=()

template<class T , class D = std::default_delete<T>>
WeakPtr & fxcrt::WeakPtr< T, D >::operator= ( const WeakPtr< T, D > & that)
inline

Definition at line 36 of file weak_ptr.h.

◆ operator==()

template<class T , class D = std::default_delete<T>>
bool fxcrt::WeakPtr< T, D >::operator== ( const WeakPtr< T, D > & that) const
inline

Definition at line 40 of file weak_ptr.h.

◆ Reset() [1/2]

template<class T , class D = std::default_delete<T>>
void fxcrt::WeakPtr< T, D >::Reset ( )
inline

Definition at line 52 of file weak_ptr.h.

◆ Reset() [2/2]

template<class T , class D = std::default_delete<T>>
void fxcrt::WeakPtr< T, D >::Reset ( std::unique_ptr< T, D > pObj)
inline

Definition at line 53 of file weak_ptr.h.

◆ Swap()

template<class T , class D = std::default_delete<T>>
void fxcrt::WeakPtr< T, D >::Swap ( WeakPtr< T, D > & that)
inline

Definition at line 56 of file weak_ptr.h.

Referenced by fxcrt::WeakPtr< T, D >::WeakPtr().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: