40 gROOT->GetListOfCleanups()->Add(
this);
43 if (fixMustCleanupBit) {
47 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
60 gROOT->GetListOfCleanups()->Remove(
this);
87 if (fixMustCleanupBit) {
91 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
107 gROOT->GetListOfCleanups()->Add(
this);
110 if (fixMustCleanupBit) {
114 Error(
"TObjectSpy",
"spied object must have the kMustCleanup bit set");
127 gROOT->GetListOfCleanups()->Remove(
this);
virtual void RecursiveRemove(TObject *obj)
Sets the object pointer to zero if the object is deleted in the RecursiveRemove() operation...
TObjectSpy(const TObjectSpy &s)
virtual void RecursiveRemove(TObject *obj)
Sets the object pointer to zero if the object is deleted in the RecursiveRemove() operation...
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
R__EXTERN TVirtualMutex * gROOTMutex
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.
Bool_t fResetMustCleanupBit
if object destructor must call RecursiveRemove()
virtual ~TObjectRefSpy()
Cleanup.
#define R__LOCKGUARD(mutex)
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...