Re: cloning TIter with state

Fons Rademakers (Fons.Rademakers@cern.ch)
Mon, 05 Jul 1999 16:19:02 +0000


Hi George,

I've implemented this and it will be available in 2.22/07.

Cheers, Fons.

George Irwin wrote:
>
> Hi Root Team, I'm looking for a way to do nested loops using TIter.
> In particular, I'd like to repeatedly initialize the inner TIter to
> the current state of the outer TIter, so that the inner loop doesn't
> repeat the items that the outer loop has already accessed. In CLHEP,
> the HepAListIterator copy constructor can be used to clone another
> HepAListIterator with the current state of the original. What is the
> best way to do something similar using the ROOT iterators?
> Thanks. George

-- 
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 7677910