26class RooTObjWrap :
public TNamed {
29 RooTObjWrap(
bool isArray=
false) : _isArray(isArray), _owning(false) {} ;
30 RooTObjWrap(TObject *inObj,
bool isArray =
false) : _isArray(isArray), _owning(false)
35 RooTObjWrap(
const RooTObjWrap& other) : TNamed(other), _isArray(other._isArray), _owning(false), _list(other._list) {}
36 ~RooTObjWrap()
override {
if (_owning) _list.Delete() ; } ;
38 void setOwning(
bool flag) { _owning = flag ; }
39 TObject* obj()
const {
return _list.At(0) ; }
40 const RooLinkedList& objList()
const {
return _list ; }
42 void setObj(TObject* inObj) {
46 if (inObj) _list.Add(inObj) ;
#define ClassDefOverride(name, id)
The TNamed class is the base class for all named ROOT classes.