Qt 4.8
Public Functions | Public Variables | List of all members
QGlobalStaticDeleter< QPenPrivate > Class Template Reference

Public Functions

 QGlobalStaticDeleter (QGlobalStatic< QPenPrivate > &_globalStatic)
 
 ~QGlobalStaticDeleter ()
 

Public Variables

QGlobalStatic< QPenPrivate > & globalStatic
 

Detailed Description

template<>
class QGlobalStaticDeleter< QPenPrivate >

Definition at line 252 of file qpen.cpp.

Constructors and Destructors

◆ QGlobalStaticDeleter()

Definition at line 256 of file qpen.cpp.

257  : globalStatic(_globalStatic)
258  { }
QGlobalStatic< QPenPrivate > & globalStatic
Definition: qpen.cpp:255

◆ ~QGlobalStaticDeleter()

Definition at line 260 of file qpen.cpp.

261  {
262  if (!globalStatic.pointer->ref.deref())
263  delete globalStatic.pointer;
264  globalStatic.pointer = 0;
265  globalStatic.destroyed = true;
266  }
QAtomicInt ref
Definition: qpen_p.h:64
bool destroyed
Definition: qglobal.h:1943
bool deref()
Atomically decrements the value of this QAtomicInt.
QBasicAtomicPointer< T > pointer
Definition: qglobal.h:1942
QGlobalStatic< QPenPrivate > & globalStatic
Definition: qpen.cpp:255

Properties

◆ globalStatic

Definition at line 255 of file qpen.cpp.


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