00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012 #ifndef BFLDREFCNT_H
00013 #define BFLDREFCNT_H
00014
00015 #ifndef ROOT_Rtypes
00016 #if !defined(__CINT__) || defined(__MAKECINT__)
00017 #include "Rtypes.h"
00018 #endif
00019 #endif
00020
00021 class BfldRefCnt {
00022
00023 public:
00024
00025 void IncrementRef() { fRef++; }
00026 void DecrementRef() { fRef--; }
00027 Int_t CountRef() { return fRef; }
00028
00029 protected:
00030
00031 BfldRefCnt() : fRef(0) { ; }
00032 virtual ~BfldRefCnt() { ; }
00033
00034 Int_t fRef;
00035
00036 private:
00037
00038 ClassDef(BfldRefCnt,1)
00039 };
00040
00041 #endif // BFLDREFCNT_H