Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
 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 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.

Libraries for TRefCnt:

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