library: libCore #include "TObjArray.h"

# TObjArrayIter

class description - source file - inheritance tree (.pdf)

## class TObjArrayIter : public TIterator

| Inheritance Chart:
`TIterator`
| <- | `TObjArrayIter` |

        private:

                        TObjArrayIter()

        public:

                                     TObjArrayIter(const TObjArray* arr, Bool_t dir = kIterForward)
                                     TObjArrayIter(const TObjArrayIter& iter)
                                     ~TObjArrayIter()
                      static TClass* Class()
          virtual const TCollection* GetCollection() const
                     virtual TClass* IsA() const
                    virtual TObject* Next()
                  virtual TIterator& operator=(const TIterator& rhs)
                      TObjArrayIter& operator=(const TObjArrayIter& rhs)
                        virtual void Reset()
                        virtual void ShowMembers(TMemberInspector& insp, char* parent)
                        virtual void Streamer(TBuffer& b)
                                void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

          const TObjArray* fArray      array being iterated
                     Int_t fCursor     current position in array
                    Bool_t fDirection  iteration direction

## Class Description

     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.

/* */

TObjArrayIter(const TObjArray *arr, Bool_t dir)

     Create array iterator. By default the iteration direction
     is kIterForward. To go backward use kIterBackward.

TObjArrayIter(const TObjArrayIter &iter) : TIterator(iter)

     Copy ctor.

TObject* Next()

     Return next object in array. Returns 0 when no more objects in array.

void Reset()

     Reset array iterator.

### Inline Functions

                          void ~TObjArrayIter()
                 TObjArrayIter TObjArrayIter(const TObjArrayIter& iter)
                    TIterator& operator=(const TIterator& rhs)
                TObjArrayIter& operator=(const TObjArrayIter& rhs)
            const TCollection* GetCollection() const
                       TClass* Class()
                       TClass* IsA() const
                          void ShowMembers(TMemberInspector& insp, char* parent)
                          void Streamer(TBuffer& b)
                          void StreamerNVirtual(TBuffer& b)

Author: Fons Rademakers 11/09/95
Last update: root/cont:$Name: $:$Id: TObjArray.cxx,v 1.24 2005/06/13 16:48:01 pcanal Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *