Logo ROOT   6.08/07
Reference Guide
List of all members | Public Types | Public Member Functions | Protected Attributes | List of all members
TRefCnt Class Reference

Definitions for TRefCnt, base class for reference counted objects.

Definition at line 29 of file TRefCnt.h.

Public Types

enum  EReferenceFlag { kStaticInit }

Public Member Functions

 TRefCnt (Int_t initRef=0)
 TRefCnt (EReferenceFlag)
 Leave fRefs alone. More...
virtual ~TRefCnt ()
void AddReference ()
UInt_t References () const
UInt_t RemoveReference ()
void SetRefCount (UInt_t r)

Protected Attributes

UInt_t fRefs

#include <TRefCnt.h>

Inheritance diagram for TRefCnt:

Member Enumeration Documentation

◆ EReferenceFlag


Definition at line 35 of file TRefCnt.h.

Constructor & Destructor Documentation

◆ TRefCnt() [1/2]

TRefCnt::TRefCnt ( Int_t  initRef = 0)

Definition at line 37 of file TRefCnt.h.

◆ TRefCnt() [2/2]

TRefCnt::TRefCnt ( EReferenceFlag  )

Leave fRefs alone.

Definition at line 27 of file TRefCnt.cxx.

◆ ~TRefCnt()

virtual TRefCnt::~TRefCnt ( )

Definition at line 39 of file TRefCnt.h.

Member Function Documentation

◆ AddReference()

void TRefCnt::AddReference ( )

Definition at line 42 of file TRefCnt.h.

◆ References()

UInt_t TRefCnt::References ( ) const

Definition at line 40 of file TRefCnt.h.

◆ RemoveReference()

UInt_t TRefCnt::RemoveReference ( )

Definition at line 43 of file TRefCnt.h.

◆ SetRefCount()

void TRefCnt::SetRefCount ( UInt_t  r)

Definition at line 41 of file TRefCnt.h.

Member Data Documentation

◆ fRefs

UInt_t TRefCnt::fRefs

Definition at line 32 of file TRefCnt.h.

The documentation for this class was generated from the following files: