library: libCore #include "TRefCnt.h"

# TRefCnt

class description - source file - inheritance tree (.pdf)

## class TRefCnt

| Inheritance Chart:
`TRefCnt` |
<- |
`TGFont` |
`TGGC` |
`TGLayoutHints` | <- |
`TGTableLayoutHints` |
`TGXYLayoutHints` |
`TGPicture` | <- |
`TGSelectedPicture` |

        public:

                   TRefCnt(Int_t initRef = 0)
                   TRefCnt(TRefCnt::EReferenceFlag)
                   TRefCnt(const TRefCnt&)
                   ~TRefCnt()
              void AddReference()
          TRefCnt& operator=(const TRefCnt&)
            UInt_t References() const
            UInt_t RemoveReference()
              void SetRefCount(UInt_t r)

### Data Members

        protected:

          UInt_t fRefs  (1 less than) number of references

        public:

          static const TRefCnt::EReferenceFlag kStaticInit

## Class Description

      TRefCnt

      Base class for reference counted objects.

### Inline Functions

                void ~TRefCnt()
             TRefCnt TRefCnt(Int_t initRef = 0)
             TRefCnt TRefCnt(TRefCnt::EReferenceFlag)
              UInt_t References() const
                void SetRefCount(UInt_t r)
                void AddReference()
              UInt_t RemoveReference()
             TRefCnt TRefCnt(const TRefCnt&)
            TRefCnt& operator=(const TRefCnt&)

Author: Fons Rademakers 04/08/95
Last update: root/base:$Name: $:$Id: TRefCnt.h,v 1.2 2000/12/13 16:45:35 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *