Re: [ROOT] TCollection::SetName()

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon May 27 2002 - 09:56:14 MEST


Hi Christian,

  if you don't want to change the behaviour of SetName() then there is
no need to override it. Just call it from your derived class.

-- Fons


On Sun, 2002-05-26 at 23:23, cstrato wrote:
> Dear Valeri
> 
> Thank you for your suggestion.
> I do not have problems to add a method SetName() to my own class,
> I am just curious why TCollection::SetName() is not virtual.
> 
> Best regards
> Christian
> 
> Valeri Fine wrote:
> 
> >Dear Christian
> >
> >"named" TList class is called TDataSet
> >
> >You may use it either directly or just borrow the idea from the code.
> >
> > Best regards, Valeri
> >
> >----- Original Message ----- 
> >From: "cstrato" <cstrato@EUnet.at>
> >To: "roottalk" <roottalk@pcroot.cern.ch>
> >Sent: Sunday, May 26, 2002 4:46 PM
> >Subject: [ROOT] TCollection::SetName()
> >
> >
> >>Dear Rene
> >>
> >>I have derived my own class from TList and wanted to name it.
> >>However, I realized that TCollection::SetName() is not virtual,
> >>while TCollection::GetName() is virtual.
> >>Is there a certain reason for this?
> >>
> >>Best regards
> >>Christian
> >>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> >>C.h.r.i.s.t.i.a.n. .S.t.r.a.t.o.w.a
> >>V.i.e.n.n.a.         .A.u.s.t.r.i.a
> >>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> >>
> >
> >
> 
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET