class TListIter: public TIterator


TListIter

Iterator of linked list.


Function Members (Methods)

public:
TListIter(const TListIter& iter)
TListIter(const TList* l, Bool_t dir = kIterForward)
virtual~TListIter()
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
TObject*TIterator::operator()()
virtual TIterator&operator=(const TIterator& rhs)
TListIter&operator=(const TListIter& rhs)
virtual voidReset()
voidSetOption(Option_t* option)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
TListIter()

Data Members

protected:
TObjLink*fCurCursorcurrent position in list
TObjLink*fCursornext position in list
Bool_tfDirectioniteration direction
const TList*fListlist being iterated
Bool_tfStartediteration started

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TListIter(const TList* l, Bool_t dir = kIterForward)
 Create a new list iterator. By default the iteration direction
 is kIterForward. To go backward use kIterBackward.
TListIter(const TListIter& iter)
 Copy ctor.
TIterator & operator=(const TIterator &rhs)
 Overridden assignment operator.
TListIter & operator=(const TListIter &rhs)
 Overloaded assignment operator.
TObject * Next()
 Return next object in the list. Returns 0 when no more objects in list.
Option_t * GetOption()
 Returns the object option stored in the list.
void SetOption(Option_t* option)
 Sets the object option stored in the list.
TListIter(const TListIter& iter)
{ }
~TListIter()
{ }
const TCollection * GetCollection()
{ return fList; }
void Reset()
{ fStarted = kFALSE; }

Author: Fons Rademakers 10/08/95
Last update: root/cont:$Id: TList.h 20882 2007-11-19 11:31:26Z rdm $
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.