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
QtSharedPointer Namespace Reference

Classes

struct  CustomDeleter
 
struct  CustomDeleter< T, NormalDeleter >
 
class  ExternalRefCount
 
struct  ExternalRefCountData
 
struct  ExternalRefCountWithContiguousData
 
struct  ExternalRefCountWithCustomDeleter
 
struct  NormalDeleter
 
struct  RemovePointer
 
struct  RemovePointer< QSharedPointer< T > >
 
struct  RemovePointer< QWeakPointer< T > >
 
struct  RemovePointer< T * >
 

Functions

Q_AUTOTEST_EXPORT void internalSafetyCheckCleanCheck ()
 
template<class X , class Y >
QSharedPointer< XcopyAndSetPointer (X *ptr, const QSharedPointer< Y > &src)
 
Q_CORE_EXPORT void internalSafetyCheckAdd (const void *, const volatile void *)
 
Q_CORE_EXPORT void internalSafetyCheckRemove (const void *)
 
template<class T , typename Klass , typename RetVal >
void executeDeleter (T *t, RetVal(Klass::*memberDeleter)())
 
template<class T , typename Deleter >
void executeDeleter (T *t, Deleter d)
 
Q_CORE_EXPORT QWeakPointer< QObjectweakPointerFromVariant_internal (const QVariant &variant)
 
Q_CORE_EXPORT QSharedPointer< QObjectsharedPointerFromVariant_internal (const QVariant &variant)
 
template<class X , class T >
Q_INLINE_TEMPLATE QSharedPointer< XcopyAndSetPointer (X *ptr, const QSharedPointer< T > &src)
 

Function Documentation

◆ copyAndSetPointer() [1/2]

template<class X , class T >
Q_INLINE_TEMPLATE QSharedPointer< X > QtSharedPointer::copyAndSetPointer ( X * ptr,
const QSharedPointer< T > & src )

Definition at line 861 of file qsharedpointer_impl.h.

References copyAndSetPointer(), and ptr().

+ Here is the call graph for this function:

◆ copyAndSetPointer() [2/2]

template<class X , class Y >
QSharedPointer< X > QtSharedPointer::copyAndSetPointer ( X * ptr,
const QSharedPointer< Y > & src )

Referenced by copyAndSetPointer(), qSharedPointerCast(), qSharedPointerConstCast(), qSharedPointerDynamicCast(), and qSharedPointerObjectCast().

+ Here is the caller graph for this function:

◆ executeDeleter() [1/2]

template<class T , typename Deleter >
void QtSharedPointer::executeDeleter ( T * t,
Deleter d )
inline

Definition at line 79 of file qsharedpointer_impl.h.

References d.

◆ executeDeleter() [2/2]

template<class T , typename Klass , typename RetVal >
void QtSharedPointer::executeDeleter ( T * t,
RetVal(Klass::*)() memberDeleter )
inline

Definition at line 76 of file qsharedpointer_impl.h.

Referenced by QtSharedPointer::CustomDeleter< T, Deleter >::execute().

+ Here is the caller graph for this function:

◆ internalSafetyCheckAdd()

void QtSharedPointer::internalSafetyCheckAdd ( const void * d_ptr,
const volatile void * ptr )

Definition at line 1619 of file qsharedpointer.cpp.

References Data, lock, ptr(), Q_ASSERT, Q_UNLIKELY, and qFatal.

+ Here is the call graph for this function:

◆ internalSafetyCheckCleanCheck()

void QtSharedPointer::internalSafetyCheckCleanCheck ( )

Called by the QSharedPointer autotest

Definition at line 1689 of file qsharedpointer.cpp.

References Q_ASSERT_X, Q_UNLIKELY, and qFatal.

◆ internalSafetyCheckRemove()

void QtSharedPointer::internalSafetyCheckRemove ( const void * d_ptr)

Definition at line 1659 of file qsharedpointer.cpp.

References QSet< T >::cend(), QSet< T >::constFind(), it, lock, Q_ASSERT, Q_UNLIKELY, and qFatal.

Referenced by QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >::safetyCheckDeleter(), and QtSharedPointer::ExternalRefCountWithContiguousData< T >::safetyCheckDeleter().

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

◆ sharedPointerFromVariant_internal()

QSharedPointer< QObject > QtSharedPointer::sharedPointerFromVariant_internal ( const QVariant & variant)

Returns a QSharedPointer<QObject> if the variant contains a QSharedPointer<T> where T inherits QObject. Otherwise the behaviour is undefined.

Definition at line 1483 of file qsharedpointer.cpp.

References QVariant::constData(), QMetaType::flags(), QVariant::metaType(), Q_ASSERT, QMetaType::SharedPointerToQObject, and variant.

Referenced by qSharedPointerFromVariant().

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

◆ weakPointerFromVariant_internal()

QWeakPointer< QObject > QtSharedPointer::weakPointerFromVariant_internal ( const QVariant & variant)

Returns a QWeakPointer<QObject> if the variant contains a QWeakPointer<T> where T inherits QObject. Otherwise the behaviour is undefined.

Definition at line 1494 of file qsharedpointer.cpp.

References QVariant::constData(), QMetaType::flags(), QVariant::metaType(), Q_ASSERT, QMetaType::TrackingPointerToQObject, variant, and QMetaType::WeakPointerToQObject.

Referenced by qPointerFromVariant(), and qWeakPointerFromVariant().

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