class TRefCnt


TRefCnt

Definitions for TRefCnt, base class for reference counted objects.


Function Members (Methods)

public:
TRefCnt(Int_t initRef = 0)
TRefCnt(TRefCnt::EReferenceFlag)
TRefCnt(const TRefCnt&)
virtual~TRefCnt()
voidAddReference()
TRefCnt&operator=(const TRefCnt&)
UInt_tReferences() const
UInt_tRemoveReference()
voidSetRefCount(UInt_t r)

Data Members

public:
enum EReferenceFlag { kStaticInit
};
protected:
UInt_tfRefs(1 less than) number of references

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TRefCnt(EReferenceFlag)
 Leave fRefs alone
TRefCnt(Int_t initRef = 0)
{ }
TRefCnt(EReferenceFlag)
virtual ~TRefCnt()
{ }
UInt_t References()
{ return fRefs+1; }
void SetRefCount(UInt_t r)
{ fRefs = r-1; }
void AddReference()
{ fRefs++; }
UInt_t RemoveReference()
{ return fRefs--; }

Author: Fons Rademakers 04/08/95
Last change: root/base:$Id: TRefCnt.h 20877 2007-11-19 11:17:07Z rdm $
Last generated: 2008-06-25 08:52
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.