Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtSharedPointer::ExternalRefCountWithContiguousData< T > Struct Template Reference

#include <qsharedpointer_impl.h>

+ Inheritance diagram for QtSharedPointer::ExternalRefCountWithContiguousData< T >:
+ Collaboration diagram for QtSharedPointer::ExternalRefCountWithContiguousData< T >:

Public Types

typedef ExternalRefCountData Parent
 
typedef std::remove_cv< T >::type NoCVType
 
- 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 void noDeleter (ExternalRefCountData *)
 
static ExternalRefCountDatacreate (NoCVType **ptr, DestroyerFn destroy)
 
- Static Public Member Functions inherited from QtSharedPointer::ExternalRefCountData
static Q_CORE_EXPORT ExternalRefCountDatagetAndRef (const QObject *)
 

Public Attributes

NoCVType data
 
- 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 ()
 
Q_CORE_EXPORT void setQObjectShared (const QObject *, bool enable)
 
Q_CORE_EXPORT void checkQObjectShared (const QObject *)
 
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>
struct QtSharedPointer::ExternalRefCountWithContiguousData< T >

Definition at line 209 of file qsharedpointer_impl.h.

Member Typedef Documentation

◆ NoCVType

template<class T >
typedef std::remove_cv<T>::type QtSharedPointer::ExternalRefCountWithContiguousData< T >::NoCVType

Definition at line 212 of file qsharedpointer_impl.h.

◆ Parent

Definition at line 211 of file qsharedpointer_impl.h.

Member Function Documentation

◆ create()

template<class T >
static ExternalRefCountData * QtSharedPointer::ExternalRefCountWithContiguousData< T >::create ( NoCVType **  ptr,
DestroyerFn  destroy 
)
inlinestatic

Definition at line 229 of file qsharedpointer_impl.h.

References d, QtSharedPointer::ExternalRefCountData::destroy(), and ptr().

+ Here is the call graph for this function:

◆ deleter()

template<class T >
static void QtSharedPointer::ExternalRefCountWithContiguousData< T >::deleter ( ExternalRefCountData self)
inlinestatic

Definition at line 215 of file qsharedpointer_impl.h.

References QtSharedPointer::ExternalRefCountWithContiguousData< T >::data, and Q_UNUSED.

Referenced by QtSharedPointer::ExternalRefCountWithContiguousData< T >::safetyCheckDeleter().

+ Here is the caller graph for this function:

◆ noDeleter()

template<class T >
static void QtSharedPointer::ExternalRefCountWithContiguousData< T >::noDeleter ( ExternalRefCountData )
inlinestatic

Definition at line 227 of file qsharedpointer_impl.h.

◆ safetyCheckDeleter()

template<class T >
static void QtSharedPointer::ExternalRefCountWithContiguousData< T >::safetyCheckDeleter ( ExternalRefCountData self)
inlinestatic

Definition at line 222 of file qsharedpointer_impl.h.

References QtSharedPointer::ExternalRefCountWithContiguousData< T >::deleter(), and QtSharedPointer::internalSafetyCheckRemove().

+ Here is the call graph for this function:

Member Data Documentation

◆ data


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