39 gROOT->GetListOfCleanups()->Add(
this);
42 if (fixMustCleanupBit) {
43 fResetMustCleanupBit = kTRUE;
44 fObj->SetBit(kMustCleanup, kTRUE);
46 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
59 gROOT->GetListOfCleanups()->Remove(
this);
86 if (fixMustCleanupBit) {
90 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
106 gROOT->GetListOfCleanups()->Add(
this);
109 if (fixMustCleanupBit) {
110 fResetMustCleanupBit = kTRUE;
111 fObj->SetBit(kMustCleanup, kTRUE);
113 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
126 gROOT->GetListOfCleanups()->Remove(
this);
bool Bool_t
Boolean (0=false, 1=true) (bool).
externTVirtualMutex * gROOTMutex
#define R__LOCKGUARD(mutex)
TObjectRefSpy(const TObjectRefSpy &s)=delete
void RecursiveRemove(TObject *obj) override
Sets the object pointer to zero if the object is deleted in the RecursiveRemove() operation.
virtual ~TObjectRefSpy()
Cleanup.
Bool_t fResetMustCleanupBit
Bool_t fResetMustCleanupBit
void RecursiveRemove(TObject *obj) override
Sets the object pointer to zero if the object is deleted in the RecursiveRemove() operation.
virtual ~TObjectSpy()
Cleanup.
TObjectSpy(const TObjectSpy &s)=delete
void SetObject(TObject *obj, Bool_t fixMustCleanupBit=kTRUE)
Set obj as the spy target.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TObject()
TObject constructor.
@ kMustCleanup
if object destructor must call RecursiveRemove()