ROOT logo
ROOT » GRAF3D » EVE » TEveRefCnt

class TEveRefCnt


 Base-class for reference-counted objects.
 By default the object is destroyed when zero referece-count is reached.

Function Members (Methods)

public:
TEveRefCnt()
TEveRefCnt(const TEveRefCnt&)
virtual~TEveRefCnt()
static TClass*Class()
voidDecRefCount()
voidIncRefCount()
virtual TClass*IsA() const
virtual voidOnZeroRefCount()
TEveRefCnt&operator=(const TEveRefCnt&)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

protected:
Int_tfRefCount

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TEvePadHolder& operator=(const TEveRefCnt& )
TEveRefCnt()
{}
virtual ~TEveRefCnt()
{}
TEveRefCnt(const TEveRefCnt& )
{}
void IncRefCount()
{ ++fRefCount; }
void DecRefCount()
{ if(--fRefCount <= 0) OnZeroRefCount(); }
void OnZeroRefCount()
{ delete this; }