12 #ifndef ROOT_TGeoExtension 13 #define ROOT_TGeoExtension 31 virtual void Release()
const = 0;
45 void Release()
const {assert(fRC > 0); fRC--;
if (fRC ==0)
delete this;}
virtual ~TGeoRCExtension()
TObject * GetUserObject() const
void SetUserObject(TObject *obj)
TGeoRCExtension(TObject *obj)
#define ClassDef(name, id)
TObject & operator=(const TObject &rhs)
TObject assignment operator.
virtual void Release() const =0
ABC for user objects attached to TGeoVolume or TGeoNode.
Reference counted extension which has a pointer to and owns a user defined TObject.
Mother of all ROOT objects.
virtual TGeoExtension * Grab()=0