TOrdCollectionIter


class description - source file - inheritance tree

class TOrdCollectionIter : public TIterator

    private:
TOrdCollectionIter TOrdCollectionIter() public:
TOrdCollectionIter TOrdCollectionIter(TOrdCollection* col, Bool_t dir = kIterForward) virtual void ~TOrdCollectionIter() TClass* Class() virtual const TCollection* GetCollection() virtual TClass* IsA() virtual TObject* Next() virtual void Reset() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
const TOrdCollection* fCol collection being iterated Int_t fCursor current position in collection Bool_t fDirection iteration 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.

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

void Reset()
 Reset collection iterator.



Inline Functions


        TOrdCollectionIter TOrdCollectionIter(TOrdCollection* col, Bool_t dir = kIterForward)
        const TCollection* GetCollection()
                   TClass* Class()
                   TClass* IsA()
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void ~TOrdCollectionIter()


Author: Fons Rademakers 13/09/95
Last update: 1.03/09 03/12/97 02.17.27 by Fons Rademakers
Copyright (c) 1995-1998, The ROOT System, All rights reserved. *


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.