Logo ROOT  
Reference Guide
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 (EReferenceFlag)
 Leave fRefs alone. More...
 
 TRefCnt (Int_t initRef=0)
 
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 39 of file TRefCnt.h.

Constructor & Destructor Documentation

◆ TRefCnt() [1/2]

TRefCnt::TRefCnt ( Int_t  initRef = 0)
inline

Definition at line 41 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 43 of file TRefCnt.h.

Member Function Documentation

◆ AddReference()

void TRefCnt::AddReference ( )
inline

Definition at line 46 of file TRefCnt.h.

◆ References()

UInt_t TRefCnt::References ( ) const
inline

Definition at line 44 of file TRefCnt.h.

◆ RemoveReference()

UInt_t TRefCnt::RemoveReference ( )
inline

Definition at line 47 of file TRefCnt.h.

◆ SetRefCount()

void TRefCnt::SetRefCount ( UInt_t  r)
inline

Definition at line 45 of file TRefCnt.h.

Member Data Documentation

◆ fRefs

UInt_t TRefCnt::fRefs
protected

Definition at line 36 of file TRefCnt.h.


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