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>.
|
#include <qsharedpointer_impl.h>
Public Types | |
typedef void(* | DestroyerFn) (ExternalRefCountData *) |
Public Member Functions | |
ExternalRefCountData (DestroyerFn d) | |
ExternalRefCountData (Qt::Initialization) | |
~ExternalRefCountData () | |
void | destroy () |
QT6_ONLY (Q_CORE_EXPORT void setQObjectShared(const QObject *, bool enable);) inline void checkQObjectShared(...) | |
void | setQObjectShared (...) |
void * | operator new (std::size_t)=delete |
void * | operator new (std::size_t, void *ptr) noexcept |
void | operator delete (void *ptr) |
void | operator delete (void *, void *) |
Static Public Member Functions | |
static Q_CORE_EXPORT ExternalRefCountData * | getAndRef (const QObject *) |
Public Attributes | |
QBasicAtomicInt | weakref |
QBasicAtomicInt | strongref |
DestroyerFn | destroyer |
Definition at line 99 of file qsharedpointer_impl.h.
typedef void(* QtSharedPointer::ExternalRefCountData::DestroyerFn) (ExternalRefCountData *) |
Definition at line 101 of file qsharedpointer_impl.h.
|
inline |
Definition at line 106 of file qsharedpointer_impl.h.
References QBasicAtomicInteger< T >::storeRelaxed(), strongref, and weakref.
|
inline |
Definition at line 112 of file qsharedpointer_impl.h.
|
inline |
Definition at line 113 of file qsharedpointer_impl.h.
References QBasicAtomicInteger< T >::loadRelaxed(), Q_ASSERT, strongref, and weakref.
|
inline |
Definition at line 115 of file qsharedpointer_impl.h.
References destroyer.
Referenced by QtSharedPointer::ExternalRefCountWithContiguousData< T >::create().
|
static |
Definition at line 1448 of file qsharedpointer.cpp.
References d, QObjectPrivate::get(), Q_ASSERT, Q_ASSERT_X, QBasicAtomicInteger< T >::ref(), ret, Qt::Uninitialized, and weakref.
Referenced by QV4::QV4QPointer< T >::init().
Definition at line 134 of file qsharedpointer_impl.h.
Definition at line 133 of file qsharedpointer_impl.h.
References ptr().
|
inlinedelete |
|
inlinenoexcept |
Definition at line 132 of file qsharedpointer_impl.h.
References ptr().
|
inline |
Definition at line 119 of file qsharedpointer_impl.h.
|
inline |
Definition at line 125 of file qsharedpointer_impl.h.
DestroyerFn QtSharedPointer::ExternalRefCountData::destroyer |
Definition at line 104 of file qsharedpointer_impl.h.
Referenced by destroy().
QBasicAtomicInt QtSharedPointer::ExternalRefCountData::strongref |
Definition at line 103 of file qsharedpointer_impl.h.
Referenced by ExternalRefCountData(), ~ExternalRefCountData(), QObject::~QObject(), QV4::QV4QPointer< T >::data(), QWeakPointer< T >::isNull(), and QV4::QV4QPointer< T >::isNull().
QBasicAtomicInt QtSharedPointer::ExternalRefCountData::weakref |
Definition at line 102 of file qsharedpointer_impl.h.
Referenced by ExternalRefCountData(), QWeakPointer< T >::QWeakPointer(), QWeakPointer< T >::QWeakPointer(), ~ExternalRefCountData(), QObject::~QObject(), QWeakPointer< T >::~QWeakPointer(), QV4::QV4QPointer< T >::destroy(), and getAndRef().