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::UnownedPtr< T > Class Template Reference

#include <unowned_ptr.h>

+ Collaboration diagram for fxcrt::UnownedPtr< T >:

Public Member Functions

constexpr UnownedPtr () noexcept=default
 
constexpr UnownedPtr (std::nullptr_t ptr)
 
constexpr UnownedPtr (T *pObj) noexcept
 
constexpr UnownedPtr (const UnownedPtr &that) noexcept=default
 
constexpr UnownedPtr (UnownedPtr &&that) noexcept
 
template<class U , typename = typename std::enable_if< std::is_convertible<U*, T*>::value>::type>
 UnownedPtr (const UnownedPtr< U > &that)
 
template<class U , typename = typename std::enable_if< std::is_convertible<U*, T*>::value>::type>
 UnownedPtr (UnownedPtr< U > &&that) noexcept
 
UnownedPtroperator= (std::nullptr_t) noexcept
 
UnownedPtroperator= (T *that) noexcept
 
UnownedPtroperator= (const UnownedPtr &that) noexcept=default
 
UnownedPtroperator= (UnownedPtr &&that) noexcept
 
template<class U , typename = typename std::enable_if< std::is_convertible<U*, T*>::value>::type>
UnownedPtroperator= (const UnownedPtr< U > &that) noexcept
 
template<class U , typename = typename std::enable_if< std::is_convertible<U*, T*>::value>::type>
UnownedPtroperator= (UnownedPtr< U > &&that) noexcept
 
 ~UnownedPtr ()
 
bool operator== (std::nullptr_t ptr) const
 
bool operator== (const UnownedPtr &that) const
 
bool operator< (const UnownedPtr &that) const
 
 operator T* () const noexcept
 
T * get () const noexcept
 
T * ExtractAsDangling ()
 
void ClearAndDelete ()
 
 operator bool () const
 
T & operator* () const
 
T * operator-> () const
 

Detailed Description

template<class T>
class fxcrt::UnownedPtr< T >

Definition at line 75 of file unowned_ptr.h.

Constructor & Destructor Documentation

◆ UnownedPtr() [1/7]

template<class T >
fxcrt::UnownedPtr< T >::UnownedPtr ( )
constexprdefaultnoexcept

◆ UnownedPtr() [2/7]

template<class T >
fxcrt::UnownedPtr< T >::UnownedPtr ( std::nullptr_t ptr)
inlineconstexpr

Definition at line 81 of file unowned_ptr.h.

◆ UnownedPtr() [3/7]

template<class T >
fxcrt::UnownedPtr< T >::UnownedPtr ( T * pObj)
inlineexplicitconstexprnoexcept

Definition at line 83 of file unowned_ptr.h.

◆ UnownedPtr() [4/7]

template<class T >
fxcrt::UnownedPtr< T >::UnownedPtr ( const UnownedPtr< T > & that)
constexprdefaultnoexcept

◆ UnownedPtr() [5/7]

template<class T >
fxcrt::UnownedPtr< T >::UnownedPtr ( UnownedPtr< T > && that)
inlineconstexprnoexcept

Definition at line 91 of file unowned_ptr.h.

◆ UnownedPtr() [6/7]

template<class T >
template<class U , typename = typename std::enable_if< std::is_convertible<U*, T*>::value>::type>
fxcrt::UnownedPtr< T >::UnownedPtr ( const UnownedPtr< U > & that)
inline

Definition at line 98 of file unowned_ptr.h.

◆ UnownedPtr() [7/7]

template<class T >
template<class U , typename = typename std::enable_if< std::is_convertible<U*, T*>::value>::type>
fxcrt::UnownedPtr< T >::UnownedPtr ( UnownedPtr< U > && that)
inlinenoexcept

Definition at line 104 of file unowned_ptr.h.

◆ ~UnownedPtr()

template<class T >
fxcrt::UnownedPtr< T >::~UnownedPtr ( )
inline

Definition at line 154 of file unowned_ptr.h.

Member Function Documentation

◆ ClearAndDelete()

template<class T >
void fxcrt::UnownedPtr< T >::ClearAndDelete ( )
inline

Definition at line 170 of file unowned_ptr.h.

◆ ExtractAsDangling()

template<class T >
T * fxcrt::UnownedPtr< T >::ExtractAsDangling ( )
inline

Definition at line 169 of file unowned_ptr.h.

◆ get()

template<class T >
T * fxcrt::UnownedPtr< T >::get ( ) const
inlinenoexcept

Definition at line 167 of file unowned_ptr.h.

◆ operator bool()

template<class T >
fxcrt::UnownedPtr< T >::operator bool ( ) const
inlineexplicit

Definition at line 172 of file unowned_ptr.h.

◆ operator T*()

template<class T >
fxcrt::UnownedPtr< T >::operator T* ( ) const
inlinenoexcept

Definition at line 166 of file unowned_ptr.h.

◆ operator*()

template<class T >
T & fxcrt::UnownedPtr< T >::operator* ( ) const
inline

Definition at line 173 of file unowned_ptr.h.

◆ operator->()

template<class T >
T * fxcrt::UnownedPtr< T >::operator-> ( ) const
inline

Definition at line 174 of file unowned_ptr.h.

◆ operator<()

template<class T >
bool fxcrt::UnownedPtr< T >::operator< ( const UnownedPtr< T > & that) const
inline

Definition at line 162 of file unowned_ptr.h.

◆ operator=() [1/6]

template<class T >
UnownedPtr & fxcrt::UnownedPtr< T >::operator= ( const UnownedPtr< T > & that)
defaultnoexcept

◆ operator=() [2/6]

template<class T >
template<class U , typename = typename std::enable_if< std::is_convertible<U*, T*>::value>::type>
UnownedPtr & fxcrt::UnownedPtr< T >::operator= ( const UnownedPtr< U > & that)
inlinenoexcept

Definition at line 136 of file unowned_ptr.h.

◆ operator=() [3/6]

template<class T >
UnownedPtr & fxcrt::UnownedPtr< T >::operator= ( std::nullptr_t )
inlinenoexcept

Definition at line 108 of file unowned_ptr.h.

◆ operator=() [4/6]

template<class T >
UnownedPtr & fxcrt::UnownedPtr< T >::operator= ( T * that)
inlinenoexcept

Definition at line 114 of file unowned_ptr.h.

◆ operator=() [5/6]

template<class T >
UnownedPtr & fxcrt::UnownedPtr< T >::operator= ( UnownedPtr< T > && that)
inlinenoexcept

Definition at line 125 of file unowned_ptr.h.

◆ operator=() [6/6]

template<class T >
template<class U , typename = typename std::enable_if< std::is_convertible<U*, T*>::value>::type>
UnownedPtr & fxcrt::UnownedPtr< T >::operator= ( UnownedPtr< U > && that)
inlinenoexcept

Definition at line 147 of file unowned_ptr.h.

◆ operator==() [1/2]

template<class T >
bool fxcrt::UnownedPtr< T >::operator== ( const UnownedPtr< T > & that) const
inline

Definition at line 159 of file unowned_ptr.h.

◆ operator==() [2/2]

template<class T >
bool fxcrt::UnownedPtr< T >::operator== ( std::nullptr_t ptr) const
inline

Definition at line 158 of file unowned_ptr.h.


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