Re: short TArray question
Rene Brun (Rene.Brun@cern.ch)
Mon, 18 Jan 1999 15:54:34 +0100
Florian Schopper wrote:
>
> Hey Rooters,
>
> is there a way to get something like
>
> TArrayI->AddAndExpand( Int_t newdata );
>
> or
>
> TArrayI->ResizeTo( Int_t newlenght );
>
> As all the ->Set functions initialize the entries to
> zero it's not straightforward to get it by combining other calls.
> I might just not see it :*)
>
> cheers
> Florian
Hi Florian,
We will extend the TArray classes to support dynamic extension.
I take this opportunity to mention one interesting feature
of these classes, namely the function TArrayX::Adopt (X=C,S,I,F,D)
You can specify your own array to the class, and you have the freedom
to manipulate your array as you want.
Rene Brun