#ifndef ROOT_TGObject
#define ROOT_TGObject
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_GuiTypes
#include "GuiTypes.h"
#endif
class TGClient;
class TGObject : public TObject {
protected:
Handle_t fId;
TGClient *fClient;
TGObject& operator=(const TGObject& tgo)
{if(this!=&tgo) { TObject::operator=(tgo); fId=tgo.fId;
fClient=tgo.fClient; } return *this; }
public:
TGObject(): fId(0), fClient(0) { }
TGObject(const TGObject& tgo): TObject(tgo), fId(tgo.fId), fClient(tgo.fClient) { }
virtual ~TGObject() { }
Handle_t GetId() const { return fId; }
TGClient *GetClient() const { return fClient; }
ULong_t Hash() const { return (ULong_t) fId >> 0; }
Bool_t IsEqual(const TObject *obj) const { return fId == ((TGObject *) obj)->fId; }
virtual void SaveAs(const char* filename = "", Option_t* option = "") const;
ClassDef(TGObject,0)
};
#endif
Last change: Wed Jun 25 08:42:20 2008
Last generated: 2008-06-25 08:42
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.