#ifndef ROOT_TObjectSet
#define ROOT_TObjectSet
#include "TDataSet.h"
class TObjectSet : public TDataSet {
protected:
enum EOwnerBits { kIsOwner = BIT(23) };
TObject *fObj;
public:
TObjectSet(const Char_t *name, TObject *obj=0,Bool_t makeOwner=kTRUE);
TObjectSet(TObject *obj=0,Bool_t makeOwner=kTRUE);
virtual ~TObjectSet();
virtual TObject *AddObject(TObject *obj,Bool_t makeOwner=kTRUE);
virtual void Browse(TBrowser *b);
virtual void Delete(Option_t *opt="");
virtual Bool_t DoOwner(Bool_t done=kTRUE);
virtual Long_t HasData() const;
virtual TObject *GetObject() const;
virtual TDataSet *Instance() const;
virtual Bool_t IsOwner() const;
virtual void SetObject(TObject *obj);
virtual TObject *SetObject(TObject *obj,Bool_t makeOwner);
static TObjectSet *instance();
ClassDef(TObjectSet,1)
};
inline TObjectSet *TObjectSet::instance()
{ return new TObjectSet();}
inline Long_t TObjectSet::HasData() const {return fObj ? 1 : 0;}
inline TObject *TObjectSet::GetObject() const {return fObj;}
inline Bool_t TObjectSet::IsOwner() const {return TestBit(kIsOwner);}
inline void TObjectSet::SetObject(TObject *obj) { SetObject(obj,kTRUE);}
#endif
Last change: Wed Jun 25 08:49:59 2008
Last generated: 2008-06-25 08:49
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.