38 gROOT->GetListOfCleanups()->Add(
this);
40 if (fixMustCleanupBit) {
41 fResetMustCleanupBit =
kTRUE;
44 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
56 gROOT->GetListOfCleanups()->Remove(
this);
83 if (fixMustCleanupBit) {
87 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
101 gROOT->GetListOfCleanups()->Add(
this);
103 if (fixMustCleanupBit) {
107 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
119 gROOT->GetListOfCleanups()->Remove(
this);
virtual void RecursiveRemove(TObject *obj)
Sets the object pointer to zero if the object is deleted in the RecursiveRemove() operation...
virtual void RecursiveRemove(TObject *obj)
Sets the object pointer to zero if the object is deleted in the RecursiveRemove() operation...
Bool_t TestBit(UInt_t f) const
TObjectRefSpy(const TObjectRefSpy &s)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
void SetObject(TObject *obj, Bool_t fixMustCleanupBit=kTRUE)
Set obj as the spy target.
void Error(const char *location, const char *msgfmt,...)
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Bool_t fResetMustCleanupBit
if object destructor must call RecursiveRemove()
virtual ~TObjectRefSpy()
Cleanup.
Mother of all ROOT objects.
Bool_t fResetMustCleanupBit
virtual ~TObjectSpy()
Cleanup.
Monitors objects for deletion and reflects the deletion by reverting the internal pointer to zero...