37 gROOT->GetListOfCleanups()->Add(
this);
39 if (fixMustCleanupBit) {
40 fResetMustCleanupBit =
kTRUE;
43 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
55 gROOT->GetListOfCleanups()->Remove(
this);
82 if (fixMustCleanupBit) {
86 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
100 gROOT->GetListOfCleanups()->Add(
this);
102 if (fixMustCleanupBit) {
106 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
118 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...
ClassImp(TObjectSpy) ClassImp(TObjectRefSpy) TObjectSpy
Register the object that must be spied.
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.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void Error(const char *location, const char *msgfmt,...)
Bool_t TestBit(UInt_t f) const
Bool_t fResetMustCleanupBit
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...