Re: Container question
Rene Brun (Rene.Brun@cern.ch)
Sat, 19 Sep 1998 01:36:35 +0200
Florian Schopper wrote:
>
> Dear Rooters,
>
> I want to use a linked list for Objects of my detector class.
> Each Detector Object contains Objects of my Asic class.
>
> If I store the pointers to the asic objects in an array to fill
> them with new data, will those pointers get lost once I add the
> detectors to the list?
> Is it worth to use this array of pointers or is it as fast
> to look into the list?
>
> It might sound confusing but I couldn't figure it out clearer, sorry.
>
Florian,
Adding an object to a Root container cannot modify other pointers
pointing to this object. I do not understand perfectly what
you try to do. May be a solution to your problem is a TObjArray?
I need your object model and more explanations on what you try
to implement.
Rene Brun