A reference-counted stone. Note that the ref-count is not serialized -- so rebuild it in post-streaming function when necessary. When zero ref count is reached in DecRefCount(), virtual void OnZeroRefCount(); is called. Default action is to destroy the object. Note, mutex is NOT unlocked in this case ... so if you keep the object alive in OnZeroRefCnt() also unlock the mutex.
SRefCounted() | |
SRefCounted(const SRefCounted&) | |
virtual | ~SRefCounted() |
static TClass* | Class() |
virtual Int_t | DecRefCount(Int_t rc = 1) |
virtual Int_t | IncRefCount(Int_t rc = 1) |
virtual TClass* | IsA() const |
virtual void | OnZeroRefCount() |
SRefCounted& | operator=(const SRefCounted&) |
virtual void | SetRefCount(Int_t rc) |
virtual void | ShowMembers(TMemberInspector& insp) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |