On 15 Jan 99 at 16:45, 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 :*) > Facing this limitation at STAR we wrote out our own one to keep (wrap) a reallocatable array of any C-structure (not only simplest "float", "int" whatsoever etc etc.) You are welcome to have a look at: http://www.rhic.bnl.gov/STAR/html/comp_l/root/html/St_Table.html It does contain: void St_Table::ReAllocate(Int_t newsize) May be it helps. Regards Valery ================================================================= Dr. Valeri Faine (Fine) ------------------- Phone: +1 516 344 7806 Brookhaven National Laboratory FAX : +1 516 344 4206 Bldg. 510A /STAR mailto:fine@bnl.gov Upton, New York, 11973-5000 http://nicewww.cern.ch/~fine USA Dr. Valery Fine Telex : 911621 dubna su ----------- LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80 141980 Dubna, Moscow region Fax : +7 09621 6 51 45 Russia mailto:fine@main1.jinr.dubna.su
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:28 MET