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
QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter > Struct Template Reference

#include <qsharedpointer_impl.h>

Inheritance diagram for QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >:
Collaboration diagram for QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >:

Public Types

typedef ExternalRefCountWithCustomDeleter Self
typedef ExternalRefCountData BaseClass
Public Types inherited from QtSharedPointer::ExternalRefCountData
typedef void(* DestroyerFn) (ExternalRefCountData *)

Static Public Member Functions

static void deleter (ExternalRefCountData *self)
static void safetyCheckDeleter (ExternalRefCountData *self)
static Selfcreate (T *ptr, Deleter userDeleter, DestroyerFn actualDeleter)
Static Public Member Functions inherited from QtSharedPointer::ExternalRefCountData
static Q_CORE_EXPORT ExternalRefCountDatagetAndRef (const QObject *)

Public Attributes

CustomDeleter< T, Deleter > extra
Public Attributes inherited from QtSharedPointer::ExternalRefCountData
QBasicAtomicInt weakref
QBasicAtomicInt strongref
DestroyerFn destroyer

Additional Inherited Members

Public Member Functions inherited from QtSharedPointer::ExternalRefCountData
 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 (...)
voidoperator new (std::size_t)=delete
voidoperator new (std::size_t, void *ptr) noexcept
void operator delete (void *ptr)
void operator delete (void *, void *)

Detailed Description

template<class T, typename Deleter>
struct QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >

Definition at line 179 of file qsharedpointer_impl.h.

Member Typedef Documentation

◆ BaseClass

template<class T, typename Deleter>
typedef ExternalRefCountData QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >::BaseClass

Definition at line 182 of file qsharedpointer_impl.h.

◆ Self

template<class T, typename Deleter>
typedef ExternalRefCountWithCustomDeleter QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >::Self

Definition at line 181 of file qsharedpointer_impl.h.

Member Function Documentation

◆ create()

template<class T, typename Deleter>
Self * QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >::create ( T * ptr,
Deleter userDeleter,
DestroyerFn actualDeleter )
inlinestatic

Definition at line 199 of file qsharedpointer_impl.h.

References QtSharedPointer::ExternalRefCountData::ExternalRefCountData(), and extra.

Here is the call graph for this function:

◆ deleter()

template<class T, typename Deleter>
void QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >::deleter ( ExternalRefCountData * self)
inlinestatic

Definition at line 185 of file qsharedpointer_impl.h.

References extra.

Referenced by safetyCheckDeleter().

Here is the caller graph for this function:

◆ safetyCheckDeleter()

template<class T, typename Deleter>
void QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >::safetyCheckDeleter ( ExternalRefCountData * self)
inlinestatic

Definition at line 193 of file qsharedpointer_impl.h.

References deleter(), and QtSharedPointer::internalSafetyCheckRemove().

Here is the call graph for this function:

Member Data Documentation

◆ extra

template<class T, typename Deleter>
CustomDeleter<T, Deleter> QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >::extra

Definition at line 183 of file qsharedpointer_impl.h.

Referenced by create(), and deleter().


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