11 #ifndef ROOT_TObjectSet
12 #define ROOT_TObjectSet
29 enum EOwnerBits { kIsOwner = BIT(23) };
33 TObjectSet(
const Char_t *name, TObject *obj=0,Bool_t makeOwner=kTRUE);
34 TObjectSet(TObject *obj=0,Bool_t makeOwner=kTRUE);
36 virtual TObject *
AddObject(TObject *obj,Bool_t makeOwner=kTRUE);
37 virtual void Browse(TBrowser *b);
38 virtual void Delete(Option_t *opt=
"");
39 virtual Bool_t
DoOwner(Bool_t done=kTRUE);
40 virtual Long_t HasData()
const;
43 virtual Bool_t IsOwner()
const;
45 virtual TObject *
SetObject(TObject *obj,Bool_t makeOwner);
55 inline Long_t TObjectSet::HasData()
const {
return fObj ? 1 : 0;}
57 inline Bool_t TObjectSet::IsOwner()
const {
return TestBit(kIsOwner);}
virtual TObject * AddObject(TObject *obj, Bool_t makeOwner=kTRUE)
Aliase for SetObject method.
virtual Bool_t DoOwner(Bool_t done=kTRUE)
TObjectSet(const Char_t *name, TObject *obj=0, Bool_t makeOwner=kTRUE)
to be documented
virtual void Delete(Option_t *opt="")
to be documented
virtual void SetObject(TObject *obj)
The depricated method (left here for the sake of the backward compatibility)
virtual void Browse(TBrowser *b)
Browse this dataset (called by TBrowser).
virtual TDataSet * Instance() const
virtual TObject * GetObject() const
The depricated method (left here for the sake of the backward compatibility)
virtual ~TObjectSet()
to be documented