#ifndef ROOT_TObjectSpy
#define ROOT_TObjectSpy
#ifndef ROOT_TObject
#include "TObject.h"
#endif
class TObjectSpy : public TObject {
protected:
TObject *fObj;
public:
TObjectSpy(TObject *obj = 0);
TObjectSpy(const TObjectSpy& s) : TObject(), fObj(s.fObj) { }
virtual ~TObjectSpy();
TObjectSpy& operator=(const TObjectSpy& s) { fObj = s.fObj; return *this; }
virtual void RecursiveRemove(TObject *obj);
TObject *GetObject() const { return fObj; }
void SetObject(TObject *obj);
ClassDef(TObjectSpy, 0);
};
class TObjectRefSpy : public TObject {
protected:
TObject *&fObj;
public:
TObjectRefSpy(TObject *&obj);
TObjectRefSpy(const TObjectRefSpy& s) : TObject(), fObj(s.fObj) { }
virtual ~TObjectRefSpy();
TObjectRefSpy& operator=(const TObjectRefSpy& s) { fObj = s.fObj; return *this; }
virtual void RecursiveRemove(TObject *obj);
TObject *GetObject() const { return fObj; }
ClassDef(TObjectRefSpy, 0);
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.