TObjArrayIter


class description - source file - inheritance tree

class TObjArrayIter : public TIterator

    private:
TObjArrayIter TObjArrayIter() public:
TObjArrayIter TObjArrayIter(const TObjArray* arr, Bool_t dir = kIterForward) TObjArrayIter TObjArrayIter(const TObjArrayIter& iter) virtual void ~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)
 Copy ctor.

TObject* Next()
 Return next object in array. Returns 0 when no more objects in array.

void Reset()
 Reset array iterator.



Inline Functions


             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)
                      void ~TObjArrayIter()


Author: Fons Rademakers 11/09/95
Last update: root/cont:$Name: $:$Id: TObjArray.cxx,v 1.4 2000/10/31 11:18:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

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.