![]() |
Qt 6.x
The Qt SDK
|
#include <new>#include <QtCore/qatomic.h>#include <QtCore/qhashfunctions.h>#include <QtCore/qmetatype.h>#include <memory>
Include dependency graph for qsharedpointer_impl.h:Go to the source code of this file.
Classes | |
| struct | QtSharedPointer::NormalDeleter |
| struct | QtSharedPointer::RemovePointer< T * > |
| struct | QtSharedPointer::RemovePointer< QSharedPointer< T > > |
| struct | QtSharedPointer::RemovePointer< QWeakPointer< T > > |
| struct | QtSharedPointer::ExternalRefCountData |
| struct | QtSharedPointer::CustomDeleter< T, Deleter > |
| struct | QtSharedPointer::CustomDeleter< T, NormalDeleter > |
| struct | QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter > |
| struct | QtSharedPointer::ExternalRefCountWithContiguousData< T > |
| class | QSharedPointer< T > |
| \inmodule QtCore More... | |
| class | QWeakPointer< T > |
| \inmodule QtCore More... | |
| struct | QtPrivate::EnableInternalData |
| struct | QtPrivate::EnableInternalDataWrap< T > |
| class | QEnableSharedFromThis< T > |
| \inmodule QtCore More... | |
Namespaces | |
| namespace | QtPrivate |
| \macro QT_NAMESPACE | |
| namespace | QtSharedPointer |
Macros | |
| #define | DECLARE_COMPARE_SET(T1, A1, T2, A2) |
| #define | DECLARE_TEMPLATE_COMPARE_SET(T1, A1, T2, A2) |
Functions | |
| template<class T > | |
| T | qobject_cast (const QObject *object) |
| template<class X , class T > | |
| QSharedPointer< X > | qSharedPointerCast (const QSharedPointer< T > &ptr) |
| template<class X , class T > | |
| QSharedPointer< X > | qSharedPointerDynamicCast (const QSharedPointer< T > &ptr) |
| template<class X , class T > | |
| QSharedPointer< X > | qSharedPointerConstCast (const QSharedPointer< T > &ptr) |
| template<class X , class T > | |
| QSharedPointer< X > | qSharedPointerObjectCast (const QSharedPointer< T > &ptr) |
| template<class X , class Y > | |
| QSharedPointer< X > | QtSharedPointer::copyAndSetPointer (X *ptr, const QSharedPointer< Y > &src) |
| Q_CORE_EXPORT void | QtSharedPointer::internalSafetyCheckAdd (const void *, const volatile void *) |
| Q_CORE_EXPORT void | QtSharedPointer::internalSafetyCheckRemove (const void *) |
| template<class T , typename Klass , typename RetVal > | |
| void | QtSharedPointer::executeDeleter (T *t, RetVal(Klass::*memberDeleter)()) |
| template<class T , typename Deleter > | |
| void | QtSharedPointer::executeDeleter (T *t, Deleter d) |
| Q_CORE_EXPORT QWeakPointer< QObject > | QtSharedPointer::weakPointerFromVariant_internal (const QVariant &variant) |
| Q_CORE_EXPORT QSharedPointer< QObject > | QtSharedPointer::sharedPointerFromVariant_internal (const QVariant &variant) |
| template<class T , class X > | |
| Q_INLINE_TEMPLATE QSharedPointer< T >::difference_type | operator- (const QSharedPointer< T > &ptr1, const QSharedPointer< X > &ptr2) |
| template<class T , class X > | |
| Q_INLINE_TEMPLATE QSharedPointer< T >::difference_type | operator- (const QSharedPointer< T > &ptr1, X *ptr2) |
| template<class T , class X > | |
| Q_INLINE_TEMPLATE QSharedPointer< X >::difference_type | operator- (T *ptr1, const QSharedPointer< X > &ptr2) |
| template<class T , class X > | |
| Q_INLINE_TEMPLATE bool | operator< (const QSharedPointer< T > &ptr1, const QSharedPointer< X > &ptr2) |
| template<class T , class X > | |
| Q_INLINE_TEMPLATE bool | operator< (const QSharedPointer< T > &ptr1, X *ptr2) |
| template<class T , class X > | |
| Q_INLINE_TEMPLATE bool | operator< (T *ptr1, const QSharedPointer< X > &ptr2) |
| template<class T > | |
| Q_INLINE_TEMPLATE size_t | qHash (const QSharedPointer< T > &ptr, size_t seed=0) |
| template<class T > | |
| void | swap (QSharedPointer< T > &p1, QSharedPointer< T > &p2) noexcept |
| template<class T > | |
| void | swap (QWeakPointer< T > &p1, QWeakPointer< T > &p2) noexcept |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | QtSharedPointer::copyAndSetPointer (X *ptr, const QSharedPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | qSharedPointerCast (const QSharedPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | qSharedPointerCast (const QWeakPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | qSharedPointerDynamicCast (const QSharedPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | qSharedPointerDynamicCast (const QWeakPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | qSharedPointerConstCast (const QSharedPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | qSharedPointerConstCast (const QWeakPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QWeakPointer< X > | qWeakPointerCast (const QSharedPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | qSharedPointerObjectCast (const QSharedPointer< T > &src) |
| template<class X , class T > | |
| Q_INLINE_TEMPLATE QSharedPointer< X > | qSharedPointerObjectCast (const QWeakPointer< T > &src) |
| template<class X , class T > | |
| QSharedPointer< typename QtSharedPointer::RemovePointer< X >::Type > | qobject_cast (const QSharedPointer< T > &src) |
| template<class X , class T > | |
| QSharedPointer< typename QtSharedPointer::RemovePointer< X >::Type > | qobject_cast (const QWeakPointer< T > &src) |
| template<typename T > | |
| QWeakPointer< typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::Value, T >::type > | qWeakPointerFromVariant (const QVariant &variant) |
| template<typename T > | |
| QSharedPointer< typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::Value, T >::type > | qSharedPointerFromVariant (const QVariant &variant) |
| template<typename X , class T > | |
| std::shared_ptr< X > | qobject_pointer_cast (const std::shared_ptr< T > &src) |
| template<typename X , class T > | |
| std::shared_ptr< X > | qobject_pointer_cast (std::shared_ptr< T > &&src) |
| template<typename X , class T > | |
| std::shared_ptr< X > | qSharedPointerObjectCast (const std::shared_ptr< T > &src) |
| template<typename X , class T > | |
| std::shared_ptr< X > | qSharedPointerObjectCast (std::shared_ptr< T > &&src) |
| template<typename T > | |
| Q_DECLARE_TYPEINFO_BODY (QWeakPointer< T >, Q_RELOCATABLE_TYPE) | |
| template<typename T > | |
| Q_DECLARE_TYPEINFO_BODY (QSharedPointer< T >, Q_RELOCATABLE_TYPE) | |
| #define DECLARE_COMPARE_SET | ( | T1, | |
| A1, | |||
| T2, | |||
| A2 | |||
| ) |
Definition at line 424 of file qsharedpointer_impl.h.
| #define DECLARE_TEMPLATE_COMPARE_SET | ( | T1, | |
| A1, | |||
| T2, | |||
| A2 | |||
| ) |
Definition at line 430 of file qsharedpointer_impl.h.
| Q_INLINE_TEMPLATE QSharedPointer< T >::difference_type operator- | ( | const QSharedPointer< T > & | ptr1, |
| const QSharedPointer< X > & | ptr2 | ||
| ) |
Definition at line 749 of file qsharedpointer_impl.h.
References QSharedPointer< T >::data().
Here is the call graph for this function:| Q_INLINE_TEMPLATE QSharedPointer< T >::difference_type operator- | ( | const QSharedPointer< T > & | ptr1, |
| X * | ptr2 | ||
| ) |
Definition at line 754 of file qsharedpointer_impl.h.
References QSharedPointer< T >::data().
Here is the call graph for this function:| Q_INLINE_TEMPLATE QSharedPointer< X >::difference_type operator- | ( | T * | ptr1, |
| const QSharedPointer< X > & | ptr2 | ||
| ) |
Definition at line 759 of file qsharedpointer_impl.h.
References QSharedPointer< T >::data().
Here is the call graph for this function:| Q_INLINE_TEMPLATE bool operator< | ( | const QSharedPointer< T > & | ptr1, |
| const QSharedPointer< X > & | ptr2 | ||
| ) |
Definition at line 768 of file qsharedpointer_impl.h.
References QSharedPointer< T >::data().
Here is the call graph for this function:| Q_INLINE_TEMPLATE bool operator< | ( | const QSharedPointer< T > & | ptr1, |
| X * | ptr2 | ||
| ) |
Definition at line 774 of file qsharedpointer_impl.h.
References QSharedPointer< T >::data().
Here is the call graph for this function:| Q_INLINE_TEMPLATE bool operator< | ( | T * | ptr1, |
| const QSharedPointer< X > & | ptr2 | ||
| ) |
Definition at line 780 of file qsharedpointer_impl.h.
References QSharedPointer< T >::data().
Here is the call graph for this function:| Q_DECLARE_TYPEINFO_BODY | ( | QSharedPointer< T > | , |
| Q_RELOCATABLE_TYPE | |||
| ) |
| Q_DECLARE_TYPEINFO_BODY | ( | QWeakPointer< T > | , |
| Q_RELOCATABLE_TYPE | |||
| ) |
|
related |
Definition at line 790 of file qsharedpointer_impl.h.
Referenced by QSharedPointer< T >::qHash().
Here is the caller graph for this function:
|
related |
|
inline |
Definition at line 882 of file qsharedpointer_impl.h.
|
inline |
Definition at line 888 of file qsharedpointer_impl.h.
|
related |
Definition at line 911 of file qsharedpointer_impl.h.
|
related |
Definition at line 918 of file qsharedpointer_impl.h.
|
related |
Definition at line 823 of file qsharedpointer_impl.h.
References QtSharedPointer::copyAndSetPointer(), ptr(), and X.
Here is the call graph for this function:
|
related |
Definition at line 823 of file qsharedpointer_impl.h.
References QtSharedPointer::copyAndSetPointer(), ptr(), and X.
Here is the call graph for this function:
|
related |
Definition at line 829 of file qsharedpointer_impl.h.
|
related |
Definition at line 849 of file qsharedpointer_impl.h.
References QtSharedPointer::copyAndSetPointer(), ptr(), and X.
Here is the call graph for this function:
|
related |
Definition at line 849 of file qsharedpointer_impl.h.
References QtSharedPointer::copyAndSetPointer(), ptr(), and X.
Here is the call graph for this function:
|
related |
Definition at line 855 of file qsharedpointer_impl.h.
|
related |
Definition at line 835 of file qsharedpointer_impl.h.
References QtSharedPointer::copyAndSetPointer(), ptr(), and X.
Here is the call graph for this function:
|
related |
Definition at line 835 of file qsharedpointer_impl.h.
References QtSharedPointer::copyAndSetPointer(), ptr(), and X.
Here is the call graph for this function:
|
related |
Definition at line 843 of file qsharedpointer_impl.h.
| QSharedPointer< typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::Value, T >::type > qSharedPointerFromVariant | ( | const QVariant & | variant | ) |
Definition at line 903 of file qsharedpointer_impl.h.
References QtSharedPointer::sharedPointerFromVariant_internal(), and variant.
Here is the call graph for this function:
|
related |
Definition at line 869 of file qsharedpointer_impl.h.
References QtSharedPointer::copyAndSetPointer(), ptr(), and X.
Here is the call graph for this function:
|
related |
Definition at line 869 of file qsharedpointer_impl.h.
References QtSharedPointer::copyAndSetPointer(), ptr(), and X.
Here is the call graph for this function:
|
related |
Definition at line 875 of file qsharedpointer_impl.h.
|
related |
Definition at line 933 of file qsharedpointer_impl.h.
|
related |
Definition at line 939 of file qsharedpointer_impl.h.
| Q_INLINE_TEMPLATE QWeakPointer< X > qWeakPointerCast | ( | const QSharedPointer< T > & | src | ) |
Definition at line 862 of file qsharedpointer_impl.h.
| QWeakPointer< typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::Value, T >::type > qWeakPointerFromVariant | ( | const QVariant & | variant | ) |
storing non-managed QObjects in QWeakPointer is removed)
Definition at line 897 of file qsharedpointer_impl.h.
References QtPrivate::EnableInternalData::internalData(), variant, and QtSharedPointer::weakPointerFromVariant_internal().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 803 of file qsharedpointer_impl.h.
References p1, p2, swap(), and QPixmap::swap().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 807 of file qsharedpointer_impl.h.
References p1, p2, swap(), and QPixmap::swap().
Here is the call graph for this function: