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::ExternalRefCountData Struct Reference

#include <qsharedpointer_impl.h>

+ Inheritance diagram for QtSharedPointer::ExternalRefCountData:
+ Collaboration diagram for QtSharedPointer::ExternalRefCountData:

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 (...)
 
voidoperator new (std::size_t)=delete
 
voidoperator 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 ExternalRefCountDatagetAndRef (const QObject *)
 

Public Attributes

QBasicAtomicInt weakref
 
QBasicAtomicInt strongref
 
DestroyerFn destroyer
 

Detailed Description

Definition at line 108 of file qsharedpointer_impl.h.

Member Typedef Documentation

◆ DestroyerFn

void(*) QtSharedPointer::ExternalRefCountData::DestroyerFn(ExternalRefCountData *)

Definition at line 110 of file qsharedpointer_impl.h.

Constructor & Destructor Documentation

◆ ExternalRefCountData() [1/2]

QtSharedPointer::ExternalRefCountData::ExternalRefCountData ( DestroyerFn d)
inline

Definition at line 115 of file qsharedpointer_impl.h.

References destroyer.

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

+ Here is the caller graph for this function:

◆ ExternalRefCountData() [2/2]

QtSharedPointer::ExternalRefCountData::ExternalRefCountData ( Qt::Initialization )
inline

Definition at line 121 of file qsharedpointer_impl.h.

◆ ~ExternalRefCountData()

QtSharedPointer::ExternalRefCountData::~ExternalRefCountData ( )
inline

Definition at line 122 of file qsharedpointer_impl.h.

Member Function Documentation

◆ destroy()

void QtSharedPointer::ExternalRefCountData::destroy ( )
inline

Definition at line 124 of file qsharedpointer_impl.h.

References destroyer.

◆ getAndRef()

QtSharedPointer::ExternalRefCountData * QtSharedPointer::ExternalRefCountData::getAndRef ( const QObject * obj)
static

Definition at line 1433 of file qsharedpointer.cpp.

◆ operator delete() [1/2]

void QtSharedPointer::ExternalRefCountData::operator delete ( void * ,
void *  )
inline

Definition at line 143 of file qsharedpointer_impl.h.

◆ operator delete() [2/2]

void QtSharedPointer::ExternalRefCountData::operator delete ( void * ptr)
inline

Definition at line 142 of file qsharedpointer_impl.h.

◆ operator new() [1/2]

void * QtSharedPointer::ExternalRefCountData::operator new ( std::size_t )
inlinedelete

◆ operator new() [2/2]

void * QtSharedPointer::ExternalRefCountData::operator new ( std::size_t ,
void * ptr )
inlinenoexcept

Definition at line 141 of file qsharedpointer_impl.h.

◆ QT6_ONLY()

QtSharedPointer::ExternalRefCountData::QT6_ONLY ( Q_CORE_EXPORT void setQObjectShared(const QObject *, bool enable); )
inline

Definition at line 128 of file qsharedpointer_impl.h.

◆ setQObjectShared()

void QtSharedPointer::ExternalRefCountData::setQObjectShared ( ...)
inline

Definition at line 134 of file qsharedpointer_impl.h.

Member Data Documentation

◆ destroyer

DestroyerFn QtSharedPointer::ExternalRefCountData::destroyer

Definition at line 113 of file qsharedpointer_impl.h.

Referenced by ExternalRefCountData(), and destroy().

◆ strongref

QBasicAtomicInt QtSharedPointer::ExternalRefCountData::strongref

Definition at line 112 of file qsharedpointer_impl.h.

◆ weakref

QBasicAtomicInt QtSharedPointer::ExternalRefCountData::weakref

Definition at line 111 of file qsharedpointer_impl.h.


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