library: libCore
#include "TObjArray.h"

TObjArrayIter


class description - header file - source file
viewCVS header - viewCVS source

class TObjArrayIter: public TIterator

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
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 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.
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()
{ }
~TObjArrayIter()
{ }
const TCollection * GetCollection()
{ return fArray; }

Author: Fons Rademakers 11/09/95
Last update: root/cont:$Name: $:$Id: TObjArray.cxx,v 1.29 2006/11/11 15:21:30 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.