Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BfldRefCnt.h

Go to the documentation of this file.
00001 
00002 // $Id: BfldRefCnt.h,v 1.4 2008/03/14 05:17:18 rhatcher Exp $
00003 //
00004 // BfldRefCnt
00005 //
00006 // Small mix-in class for reference counting
00007 //
00008 // Author:  R. Hatcher 2000.07.06
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;           // outstanding handles
00035 
00036  private:
00037 
00038    ClassDef(BfldRefCnt,1)
00039 };
00040 
00041 #endif // BFLDREFCNT_H

Generated on Mon Feb 15 11:06:25 2010 for loon by  doxygen 1.3.9.1