QtBase  v6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QtSharedPointer::ExternalRefCountData Struct Reference

#include <qsharedpointer_impl.h>

Inheritance diagram for QtSharedPointer::ExternalRefCountData:
Inheritance graph
[legend]
Collaboration diagram for QtSharedPointer::ExternalRefCountData:
Collaboration graph
[legend]

Public Types

typedef void(* DestroyerFn) (ExternalRefCountData *)
 

Public Member Functions

 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 *)
 

Static Public Member Functions

static Q_CORE_EXPORT ExternalRefCountDatagetAndRef (const QObject *)
 

Public Attributes

QBasicAtomicInt weakref
 
QBasicAtomicInt strongref
 
DestroyerFn destroyer
 

Detailed Description

Definition at line 130 of file qsharedpointer_impl.h.

Member Typedef Documentation

◆ DestroyerFn

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

Definition at line 132 of file qsharedpointer_impl.h.

Constructor & Destructor Documentation

◆ ExternalRefCountData() [1/2]

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

Definition at line 137 of file qsharedpointer_impl.h.

Here is the call graph for this function:

◆ ExternalRefCountData() [2/2]

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

Definition at line 143 of file qsharedpointer_impl.h.

◆ ~ExternalRefCountData()

QtSharedPointer::ExternalRefCountData::~ExternalRefCountData ( )
inline

Definition at line 144 of file qsharedpointer_impl.h.

Here is the call graph for this function:

Member Function Documentation

◆ checkQObjectShared() [1/2]

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

Definition at line 153 of file qsharedpointer_impl.h.

◆ checkQObjectShared() [2/2]

void QtSharedPointer::ExternalRefCountData::checkQObjectShared ( const QObject )

Definition at line 1384 of file qsharedpointer.cpp.

◆ destroy()

void QtSharedPointer::ExternalRefCountData::destroy ( )
inline

Definition at line 146 of file qsharedpointer_impl.h.

◆ getAndRef()

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

Definition at line 1390 of file qsharedpointer.cpp.

Here is the call graph for this function:

◆ operator delete() [1/2]

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

Definition at line 163 of file qsharedpointer_impl.h.

◆ operator delete() [2/2]

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

Definition at line 162 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 161 of file qsharedpointer_impl.h.

◆ setQObjectShared() [1/2]

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

Definition at line 154 of file qsharedpointer_impl.h.

◆ setQObjectShared() [2/2]

QT_BEGIN_NAMESPACE void QtSharedPointer::ExternalRefCountData::setQObjectShared ( const QObject ,
bool  enable 
)

Definition at line 1374 of file qsharedpointer.cpp.

Member Data Documentation

◆ destroyer

DestroyerFn QtSharedPointer::ExternalRefCountData::destroyer

Definition at line 135 of file qsharedpointer_impl.h.

◆ strongref

QBasicAtomicInt QtSharedPointer::ExternalRefCountData::strongref

Definition at line 134 of file qsharedpointer_impl.h.

◆ weakref

QBasicAtomicInt QtSharedPointer::ExternalRefCountData::weakref

Definition at line 133 of file qsharedpointer_impl.h.


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