14 #ifndef vtkDICOMReferenceCount_h 
   15 #define vtkDICOMReferenceCount_h 
   17 #include "vtkSystemIncludes.h" 
   18 #include "vtkDICOMModule.h"  
   32   unsigned int operator--();
 
   33   unsigned int operator++();
 
   35   bool operator==(
unsigned int x)
 const {
 
   36     return this->Counter == x; }
 
   37   bool operator!=(
unsigned int x)
 const {
 
   38     return this->Counter != x; }
 
   45 inline unsigned int vtkDICOMReferenceCount::operator--()
 
   47 #if defined(VTK_HAVE_SYNC_BUILTINS) 
   48   return __sync_sub_and_fetch(&this->Counter, 1);
 
   50   return --this->Counter;
 
   56 inline unsigned int vtkDICOMReferenceCount::operator++()
 
   58 #if defined(VTK_HAVE_SYNC_BUILTINS) 
   59   return __sync_add_and_fetch(&this->Counter, 1);
 
   61   return ++this->Counter;
 
An object for holding an atomic reference count.
Definition: vtkDICOMReferenceCount.h:27