+
class TObjArrayIter
-
library: libCore
#include "TObjArray.h"
Display options:
Show inherited
Show non-public

class TObjArrayIter: public TIterator


TObjArray

An array of TObjects. The array expands automatically when
objects are added (shrinking can be done by hand using Expand(),
how nice to have meaningful names -:)).
Use operator[] to have "real" array behaviour.

/* */


Function Members (Methods)

public:
TObjArrayIter(const TObjArrayIter& iter)
TObjArrayIter(const TObjArray* arr, Bool_t dir = kIterForward)
~TObjArrayIter()
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*TIterator::GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
TObject*TIterator::operator()()
virtual TIterator&operator=(const TIterator& rhs)
TObjArrayIter&operator=(const TObjArrayIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TObjArrayIter()

Data Members

private:
const TObjArray*fArrayarray being iterated
Int_tfCursorcurrent position in array
Bool_tfDirectioniteration direction

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TObjArrayIter(const TObjArray* arr, Bool_t dir = kIterForward)
 Create array iterator. By default the iteration direction
 is kIterForward. To go backward use kIterBackward.
TObjArrayIter(const TObjArrayIter& iter)
 Copy ctor.
TIterator & operator=(const TIterator &rhs)
 Overridden assignment operator.
TObjArrayIter & operator=(const TObjArrayIter &rhs)
 Overloaded assignment operator.
TObject * Next()
 Return next object in array. Returns 0 when no more objects in array.
void Reset()
 Reset array iterator.
TObjArrayIter(const TObjArrayIter& iter)
{ }
~TObjArrayIter()
{ }
const TCollection * GetCollection()
{ return fArray; }

Author: Fons Rademakers 11/09/95
Last update: root/cont:$Name: $:$Id: TObjArray.cxx,v 1.34 2007/02/12 18:03:44 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.