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
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 comparesEqual (const QExplicitlySharedDataPointerV2 &lhs, const QExplicitlySharedDataPointerV2 &rhs) noexcept
 
constexpr friend Qt::strong_ordering compareThreeWay (const QExplicitlySharedDataPointerV2 &lhs, const QExplicitlySharedDataPointerV2 &rhs) noexcept
 
constexpr friend bool comparesEqual (const QExplicitlySharedDataPointerV2 &lhs, std::nullptr_t) noexcept
 
constexpr friend Qt::strong_ordering compareThreeWay (const QExplicitlySharedDataPointerV2 &lhs, std::nullptr_t) noexcept
 

Detailed Description

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

Definition at line 21 of file qshareddata_impl.h.

Constructor & Destructor Documentation

◆ QExplicitlySharedDataPointerV2() [1/5]

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

Definition at line 26 of file qshareddata_impl.h.

◆ QExplicitlySharedDataPointerV2() [2/5]

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

Definition at line 28 of file qshareddata_impl.h.

References QExplicitlySharedDataPointerV2().

Referenced by QExplicitlySharedDataPointerV2().

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

◆ QExplicitlySharedDataPointerV2() [3/5]

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

Definition at line 35 of file qshareddata_impl.h.

References QExplicitlySharedDataPointerV2().

Referenced by QExplicitlySharedDataPointerV2().

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

◆ QExplicitlySharedDataPointerV2() [4/5]

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

Definition at line 40 of file qshareddata_impl.h.

References QExplicitlySharedDataPointerV2().

Referenced by QExplicitlySharedDataPointerV2().

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

◆ QExplicitlySharedDataPointerV2() [5/5]

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

Definition at line 54 of file qshareddata_impl.h.

References QExplicitlySharedDataPointerV2().

Referenced by QExplicitlySharedDataPointerV2().

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

◆ ~QExplicitlySharedDataPointerV2()

Definition at line 66 of file qshareddata_impl.h.

Member Function Documentation

◆ data() [1/2]

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

Definition at line 116 of file qshareddata_impl.h.

◆ data() [2/2]

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

Definition at line 115 of file qshareddata_impl.h.

◆ detach()

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

Definition at line 72 of file qshareddata_impl.h.

References swap().

+ Here is the call graph for this function:

◆ isShared()

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

Definition at line 99 of file qshareddata_impl.h.

◆ operator bool()

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

Definition at line 118 of file qshareddata_impl.h.

◆ operator*() [1/2]

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

Definition at line 110 of file qshareddata_impl.h.

◆ operator*() [2/2]

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

Definition at line 112 of file qshareddata_impl.h.

◆ operator->() [1/2]

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

Definition at line 111 of file qshareddata_impl.h.

◆ operator->() [2/2]

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

Definition at line 113 of file qshareddata_impl.h.

◆ operator=() [1/2]

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

Definition at line 47 of file qshareddata_impl.h.

References 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 59 of file qshareddata_impl.h.

References 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 85 of file qshareddata_impl.h.

◆ swap()

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

Definition at line 104 of file qshareddata_impl.h.

Referenced by detach(), operator=(), and operator=().

+ Here is the caller graph for this function:

◆ take()

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

Definition at line 94 of file qshareddata_impl.h.

Friends And Related Symbol Documentation

◆ comparesEqual [1/2]

template<typename T>
friend bool comparesEqual ( const QExplicitlySharedDataPointerV2< T > & lhs,
const QExplicitlySharedDataPointerV2< T > & rhs )
friend

Definition at line 121 of file qshareddata_impl.h.

◆ comparesEqual [2/2]

template<typename T>
friend bool comparesEqual ( const QExplicitlySharedDataPointerV2< T > & lhs,
std::nullptr_t  )
friend

Definition at line 131 of file qshareddata_impl.h.

◆ compareThreeWay [1/2]

template<typename T>
friend Qt::strong_ordering compareThreeWay ( const QExplicitlySharedDataPointerV2< T > & lhs,
const QExplicitlySharedDataPointerV2< T > & rhs )
friend

Definition at line 125 of file qshareddata_impl.h.

◆ compareThreeWay [2/2]

template<typename T>
friend Qt::strong_ordering compareThreeWay ( const QExplicitlySharedDataPointerV2< T > & lhs,
std::nullptr_t  )
friend

Definition at line 134 of file qshareddata_impl.h.


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