base/zz_use_counter.h

Go to the documentation of this file.
00001 /* libzz
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00009 #ifndef zz_use_counter_h
00010 #define zz_use_counter_h
00011 
00012 #include <zz_export.h>
00013 
00014 /*
00015     Description:
00016     Referens räknare
00017     
00018     Remarks:
00019     Används internt av CzzHandle
00020 
00021     Author:  
00022     Toni Thomsson, toni@tonjac.org
00023 
00024     Library:
00025     libzz.a (HPUX) libzz.lib (win32)
00026 
00027     Platform:
00028         HPUX, win32
00029 */
00030 class ZZ_API CzzUseCounter
00031 {
00032 public:
00033 
00034     // Description: Skapar en räknare
00035     CzzUseCounter( void );
00036 
00037     // Description: Frigör räknaren
00038     virtual ~CzzUseCounter();
00039 
00040     // Description: Antal referenser
00041     unsigned long getCount( void );
00042 
00043     // Description: Lägger till en referens
00044     // Returns: Antal referenser
00045     unsigned long addRef( void );
00046 
00047     // Description: Frigör en referens
00048     // Returns: Antal referenser
00049     unsigned long release( void );
00050 
00051 private:
00052     unsigned long m_Count;
00053 };
00054 
00055 #endif // zz_use_counter_h

Generated on Thu Sep 21 21:45:42 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO