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:
virtual~TEveRefCnt()
static TClass*Class()
voidDecRefCount()
voidIncRefCount()
virtual TClass*IsA() const
virtual voidOnZeroRefCount()
TEveRefCnt&operator=(const TEveRefCnt&)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TEveRefCnt()
TEveRefCnt(const TEveRefCnt&)

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; }