Logo ROOT   6.14/05
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 27 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:
[legend]

Member Enumeration Documentation

◆ EReferenceFlag

Enumerator
kStaticInit 

Definition at line 33 of file TRefCnt.h.

Constructor & Destructor Documentation

◆ TRefCnt() [1/2]

TRefCnt::TRefCnt ( Int_t  initRef = 0)
inline

Definition at line 35 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 ( )
inlinevirtual

Definition at line 37 of file TRefCnt.h.

Member Function Documentation

◆ AddReference()

void TRefCnt::AddReference ( )
inline

Definition at line 40 of file TRefCnt.h.

◆ References()

UInt_t TRefCnt::References ( ) const
inline

Definition at line 38 of file TRefCnt.h.

◆ RemoveReference()

UInt_t TRefCnt::RemoveReference ( )
inline

Definition at line 41 of file TRefCnt.h.

◆ SetRefCount()

void TRefCnt::SetRefCount ( UInt_t  r)
inline

Definition at line 39 of file TRefCnt.h.

Member Data Documentation

◆ fRefs

UInt_t TRefCnt::fRefs
protected

Definition at line 30 of file TRefCnt.h.


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