00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012 #ifndef GEOREFCNT_H
00013 #define GEOREFCNT_H
00014
00015 #include <Rtypes.h>
00016
00017 class GeoRefCnt {
00018
00019 public:
00020
00021
00022 GeoRefCnt() { fRef = 0; }
00023 virtual ~GeoRefCnt() {}
00024
00025 virtual void IncrementRef();
00026 virtual void DecrementRef();
00027 inline Int_t CountRef() const { return fRef; }
00028
00029 protected:
00030
00031 Int_t fRef;
00032
00033
00034 ClassDef(GeoRefCnt,1)
00035 };
00036 inline void GeoRefCnt::IncrementRef() { fRef++; }
00037 inline void GeoRefCnt::DecrementRef() { fRef--; }
00038
00039 #endif // GEOREFCNT_H