library: libCore
#include "TOrdCollection.h"

TOrdCollectionIter


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

class TOrdCollectionIter: public TIterator

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TOrdCollectionIter(const TOrdCollectionIter& iter)
TOrdCollectionIter(const TOrdCollection* col, Bool_t dir = kIterForward)
~TOrdCollectionIter()
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)
TOrdCollectionIter&operator=(const TOrdCollectionIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TOrdCollectionIter()

Data Members

private:
const TOrdCollection*fColcollection being iterated
Int_tfCursorcurrent position in collection
Bool_tfDirectioniteration direction

Class Description

                                                                      
 TOrdCollection                                                       
                                                                      
 Ordered collection. An ordered collection has TList insertion        
 semantics but is implemented using an array of TObject*'s. It uses   
 less space than a TList (since there is no need for the prev and     
 next pointers), but it is more costly to insert objects (since it    
 has to create a gap by copying object pointers). TOrdCollection      
 is better than TList when objects are only added at the end of the   
 collection since no copying needs to be done.                        
/* */
                                                                      

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

Author: Fons Rademakers 13/09/95
Last update: root/cont:$Name: $:$Id: TOrdCollection.cxx,v 1.13 2006/04/19 08:22:22 rdm 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.