Re: short TArray question

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jan 18 1999 - 15:54:34 MET


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:28 MET