ROOT logo
Gled » GLEDCORE » SRefCountedNV

class SRefCountedNV


 A reference-counted stone without virtual functions, all functions inline.
 Note that the ref-count is not serialized -- so rebuild it in
 post-streaming function when necessary.
 As there are no virtual functions
   Int_t DecRefCount(Int_t rc=1);
 *must* be implmented in the sub-class. Macro
   SRefCountedNV_DecRefCount_macro
 is defined for this purpose in the header file. This implementation
 destructs the object when zero ref count is reached.

Function Members (Methods)

public:
SRefCountedNV()
SRefCountedNV(const SRefCountedNV&)
~SRefCountedNV()
static TClass*Class()
Int_tIncRefCount(Int_t rc = 1)
TClass*IsA() const
SRefCountedNV&operator=(const SRefCountedNV&)
voidSetRefCount(Int_t rc)
voidShowMembers(TMemberInspector& insp)
voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

protected:
GMutexmRCMutex!
Int_tmRefCount!

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void SetRefCount(Int_t rc)
Int_t IncRefCount(Int_t rc = 1)
SRefCountedNV()
{}