CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

RCBase.hh

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id:
00003 //------------------RCBase--------------------------------------------------//
00004 //                                                                          //
00005 // Class RCBase                                                             //
00006 // Joe Boudreau                                                             // 
00007 // Base class for reference counting                                        //
00008 //                                                                          //
00009 //--------------------------------------------------------------------------//
00010 #ifndef RCBase_h
00011 #define RCBase_h 1
00012 namespace Genfun {
00017   class RCBase 
00018   {
00019     
00020   public:
00021     
00022     RCBase();
00023     
00024     
00025     void ref() const;
00026     
00027     void unref() const;
00028     
00029     unsigned int refCount() const;
00030     
00031     
00032   protected:
00033     
00034     virtual ~RCBase();
00035     
00036   private:
00037     
00038     RCBase(const RCBase &right);
00039     
00040     const RCBase & operator=(const RCBase &right);
00041     
00042     mutable unsigned short int _count;
00043     
00044     
00045     
00046   };
00047   
00048   
00049   
00050 }
00051 
00052 
00053 #endif
00054 
00055 

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7