#ifndef ROOT_TRefCnt
#define ROOT_TRefCnt
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
class TRefCnt {
protected:
   UInt_t  fRefs;      
public:
   enum EReferenceFlag { kStaticInit };
   TRefCnt(Int_t initRef = 0) : fRefs((UInt_t)initRef-1) { }
   TRefCnt(EReferenceFlag);
   virtual ~TRefCnt() { }
   UInt_t   References() const      { return fRefs+1; }
   void     SetRefCount(UInt_t r)   { fRefs = r-1; }
   void     AddReference()          { fRefs++; }
   UInt_t   RemoveReference()       { return fRefs--; }
};
#endif
Last change: Tue May 13 17:24:18 2008
Last generated: 2008-05-13 17:24
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.