ExternalRefCountData Struct Reference


Detailed Description

Definition at line 173 of file qsharedpointer_impl.h.

#include <qsharedpointer_impl.h>

Inheritance diagram for ExternalRefCountData:
Inheritance graph
[legend]

List of all members.

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
ExternalRefCountData
getAndRef (const QObject *)

Public Attributes

QBasicAtomicInt  weakref
QBasicAtomicInt  strongref

Constructor & Destructor Documentation

ExternalRefCountData ( ) [inline]

Definition at line 178 of file qsharedpointer_impl.h.

        {
            strongref = 1;
            weakref = 1;
        }

Definition at line 183 of file qsharedpointer_impl.h.

{ }
virtual ~ExternalRefCountData ( ) [inline, virtual]

Definition at line 184 of file qsharedpointer_impl.h.

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

Member Function Documentation

virtual bool destroy ( ) [inline, virtual]

Reimplemented in ExternalRefCountWithDestroyFn.

Definition at line 189 of file qsharedpointer_impl.h.

{ 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 195 of file qsharedpointer_impl.h.

{ }

Member Data Documentation


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