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

Public Functions

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

Public Variables

QGlobalStatic< QBrushData > & globalStatic
 

Detailed Description

template<>
class QGlobalStaticDeleter< QBrushData >

Definition at line 347 of file qbrush.cpp.

Constructors and Destructors

◆ QGlobalStaticDeleter()

Definition at line 351 of file qbrush.cpp.

352  : globalStatic(_globalStatic)
353  { }
QGlobalStatic< QBrushData > & globalStatic
Definition: qbrush.cpp:350

◆ ~QGlobalStaticDeleter()

Definition at line 355 of file qbrush.cpp.

356  {
357  if (!globalStatic.pointer->ref.deref())
358  delete globalStatic.pointer;
359  globalStatic.pointer = 0;
360  globalStatic.destroyed = true;
361  }
QGlobalStatic< QBrushData > & globalStatic
Definition: qbrush.cpp:350
bool destroyed
Definition: qglobal.h:1943
bool deref()
Atomically decrements the value of this QAtomicInt.
QBasicAtomicPointer< T > pointer
Definition: qglobal.h:1942
QAtomicInt ref
Definition: qbrush.h:176

Properties

◆ globalStatic

Definition at line 350 of file qbrush.cpp.


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