ExternalRefCountData Struct Reference

#include <qsharedpointer_impl.h>

Class Description

Definition at line 182 of file qsharedpointer_impl.h.

+ Inheritance diagram for ExternalRefCountData:

Public Member Functions

 ExternalRefCountData ()
 
 ExternalRefCountData (Qt::Initialization)
 
virtual ~ExternalRefCountData ()
 
virtual bool destroy ()
 
Q_CORE_EXPORT void setQObjectShared (const QObject *, bool enable)
 
void setQObjectShared (...)
 

Static Public Member Functions

static Q_CORE_EXPORT ExternalRefCountDatagetAndRef (const QObject *)
 

Public Attributes

QBasicAtomicInt weakref
 
QBasicAtomicInt strongref
 

Constructor & Destructor Documentation

Definition at line 187 of file qsharedpointer_impl.h.

188  {
189  strongref = 1;
190  weakref = 1;
191  }

Definition at line 192 of file qsharedpointer_impl.h.

192 { }
virtual ~ExternalRefCountData ( )
inlinevirtual

Definition at line 193 of file qsharedpointer_impl.h.

193 { Q_ASSERT(!weakref); Q_ASSERT(strongref <= 0); }

Member Function Documentation

virtual bool destroy ( )
inlinevirtual

Reimplemented in ExternalRefCountWithDestroyFn.

Definition at line 198 of file qsharedpointer_impl.h.

198 { return false; }
static Q_CORE_EXPORT ExternalRefCountData* getAndRef ( const QObject )
static
Q_CORE_EXPORT void setQObjectShared ( const QObject ,
bool  enable 
)
void setQObjectShared (   ...)
inline

Definition at line 204 of file qsharedpointer_impl.h.

204 { }

Member Data Documentation

QBasicAtomicInt weakref

Definition at line 184 of file qsharedpointer_impl.h.

QBasicAtomicInt strongref

Definition at line 185 of file qsharedpointer_impl.h.


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