Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtPrivate::QExplicitlySharedDataPointerV2< T > Class Template Reference

#include <qshareddata_impl.h>

+ Collaboration diagram for QtPrivate::QExplicitlySharedDataPointerV2< T >:

Public Member Functions

constexpr QExplicitlySharedDataPointerV2 () noexcept
 
 QExplicitlySharedDataPointerV2 (T *t) noexcept
 
 QExplicitlySharedDataPointerV2 (T *t, QAdoptSharedDataTag) noexcept
 
 QExplicitlySharedDataPointerV2 (const QExplicitlySharedDataPointerV2 &other) noexcept
 
QExplicitlySharedDataPointerV2operator= (const QExplicitlySharedDataPointerV2 &other) noexcept
 
 QExplicitlySharedDataPointerV2 (QExplicitlySharedDataPointerV2 &&other) noexcept
 
QExplicitlySharedDataPointerV2operator= (QExplicitlySharedDataPointerV2 &&other) noexcept
 
 ~QExplicitlySharedDataPointerV2 ()
 
void detach ()
 
void reset (T *t=nullptr) noexcept
 
constexpr T * take () noexcept
 
bool isShared () const noexcept
 
constexpr void swap (QExplicitlySharedDataPointerV2 &other) noexcept
 
constexpr T & operator* ()
 
constexpr T * operator-> ()
 
constexpr const T & operator* () const
 
constexpr const T * operator-> () const
 
constexpr T * data () noexcept
 
constexpr const T * data () const noexcept
 
constexpr operator bool () const noexcept
 

Friends

constexpr friend bool operator== (const QExplicitlySharedDataPointerV2 &lhs, const QExplicitlySharedDataPointerV2 &rhs) noexcept
 
constexpr friend bool operator!= (const QExplicitlySharedDataPointerV2 &lhs, const QExplicitlySharedDataPointerV2 &rhs) noexcept
 

Detailed Description

template<typename T>
class QtPrivate::QExplicitlySharedDataPointerV2< T >

Definition at line 20 of file qshareddata_impl.h.

Constructor & Destructor Documentation

◆ QExplicitlySharedDataPointerV2() [1/5]

template<typename T >
constexpr QtPrivate::QExplicitlySharedDataPointerV2< T >::QExplicitlySharedDataPointerV2 ( )
inlineconstexprnoexcept

Definition at line 25 of file qshareddata_impl.h.

◆ QExplicitlySharedDataPointerV2() [2/5]

template<typename T >
QtPrivate::QExplicitlySharedDataPointerV2< T >::QExplicitlySharedDataPointerV2 ( T * t)
inlineexplicitnoexcept

Definition at line 27 of file qshareddata_impl.h.

References d.

◆ QExplicitlySharedDataPointerV2() [3/5]

template<typename T >
QtPrivate::QExplicitlySharedDataPointerV2< T >::QExplicitlySharedDataPointerV2 ( T * t,
QAdoptSharedDataTag  )
inlinenoexcept

Definition at line 34 of file qshareddata_impl.h.

References d.

◆ QExplicitlySharedDataPointerV2() [4/5]

template<typename T >
QtPrivate::QExplicitlySharedDataPointerV2< T >::QExplicitlySharedDataPointerV2 ( const QExplicitlySharedDataPointerV2< T > & other)
inlinenoexcept

Definition at line 39 of file qshareddata_impl.h.

References d.

◆ QExplicitlySharedDataPointerV2() [5/5]

template<typename T >
QtPrivate::QExplicitlySharedDataPointerV2< T >::QExplicitlySharedDataPointerV2 ( QExplicitlySharedDataPointerV2< T > && other)
inlinenoexcept

Definition at line 53 of file qshareddata_impl.h.

References d.

◆ ~QExplicitlySharedDataPointerV2()

Definition at line 65 of file qshareddata_impl.h.

References d.

Member Function Documentation

◆ data() [1/2]

template<typename T >
constexpr const T * QtPrivate::QExplicitlySharedDataPointerV2< T >::data ( ) const
inlineconstexprnoexcept

Definition at line 115 of file qshareddata_impl.h.

References d.

◆ data() [2/2]

template<typename T >
constexpr T * QtPrivate::QExplicitlySharedDataPointerV2< T >::data ( )
inlineconstexprnoexcept

Definition at line 114 of file qshareddata_impl.h.

References d.

◆ detach()

template<typename T >
void QtPrivate::QExplicitlySharedDataPointerV2< T >::detach ( )
inline

Definition at line 71 of file qshareddata_impl.h.

References QtPrivate::copy(), d, and QtPrivate::QExplicitlySharedDataPointerV2< T >::swap().

+ Here is the call graph for this function:

◆ isShared()

template<typename T >
bool QtPrivate::QExplicitlySharedDataPointerV2< T >::isShared ( ) const
inlinenoexcept

Definition at line 98 of file qshareddata_impl.h.

References d.

◆ operator bool()

template<typename T >
constexpr QtPrivate::QExplicitlySharedDataPointerV2< T >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 117 of file qshareddata_impl.h.

References d.

◆ operator*() [1/2]

template<typename T >
constexpr T & QtPrivate::QExplicitlySharedDataPointerV2< T >::operator* ( )
inlineconstexpr

Definition at line 109 of file qshareddata_impl.h.

References d.

◆ operator*() [2/2]

template<typename T >
constexpr const T & QtPrivate::QExplicitlySharedDataPointerV2< T >::operator* ( ) const
inlineconstexpr

Definition at line 111 of file qshareddata_impl.h.

References d.

◆ operator->() [1/2]

template<typename T >
constexpr T * QtPrivate::QExplicitlySharedDataPointerV2< T >::operator-> ( )
inlineconstexpr

Definition at line 110 of file qshareddata_impl.h.

References d.

◆ operator->() [2/2]

template<typename T >
constexpr const T * QtPrivate::QExplicitlySharedDataPointerV2< T >::operator-> ( ) const
inlineconstexpr

Definition at line 112 of file qshareddata_impl.h.

References d.

◆ operator=() [1/2]

template<typename T >
QExplicitlySharedDataPointerV2 & QtPrivate::QExplicitlySharedDataPointerV2< T >::operator= ( const QExplicitlySharedDataPointerV2< T > & other)
inlinenoexcept

Definition at line 46 of file qshareddata_impl.h.

References QtPrivate::copy(), other(), and QtPrivate::QExplicitlySharedDataPointerV2< T >::swap().

+ Here is the call graph for this function:

◆ operator=() [2/2]

template<typename T >
QExplicitlySharedDataPointerV2 & QtPrivate::QExplicitlySharedDataPointerV2< T >::operator= ( QExplicitlySharedDataPointerV2< T > && other)
inlinenoexcept

Definition at line 58 of file qshareddata_impl.h.

References other(), and QtPrivate::QExplicitlySharedDataPointerV2< T >::swap().

+ Here is the call graph for this function:

◆ reset()

template<typename T >
void QtPrivate::QExplicitlySharedDataPointerV2< T >::reset ( T * t = nullptr)
inlinenoexcept

Definition at line 84 of file qshareddata_impl.h.

References d.

◆ swap()

template<typename T >
constexpr void QtPrivate::QExplicitlySharedDataPointerV2< T >::swap ( QExplicitlySharedDataPointerV2< T > & other)
inlineconstexprnoexcept

Definition at line 103 of file qshareddata_impl.h.

References d, other(), and qt_ptr_swap().

Referenced by QtPrivate::QExplicitlySharedDataPointerV2< T >::detach(), QtPrivate::QExplicitlySharedDataPointerV2< T >::operator=(), and QtPrivate::QExplicitlySharedDataPointerV2< T >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ take()

template<typename T >
constexpr T * QtPrivate::QExplicitlySharedDataPointerV2< T >::take ( )
inlineconstexprnoexcept

Definition at line 93 of file qshareddata_impl.h.

References d.

Friends And Related Symbol Documentation

◆ operator!=

template<typename T >
constexpr friend bool operator!= ( const QExplicitlySharedDataPointerV2< T > & lhs,
const QExplicitlySharedDataPointerV2< T > & rhs )
friend

Definition at line 125 of file qshareddata_impl.h.

◆ operator==

template<typename T >
constexpr friend bool operator== ( const QExplicitlySharedDataPointerV2< T > & lhs,
const QExplicitlySharedDataPointerV2< T > & rhs )
friend

Definition at line 119 of file qshareddata_impl.h.


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