TOrdCollectionIter


class description - source file - inheritance tree

class TOrdCollectionIter : public TIterator

    private:
TOrdCollectionIter TOrdCollectionIter() public:
TOrdCollectionIter TOrdCollectionIter(const TOrdCollection* col, Bool_t dir = kIterForward) TOrdCollectionIter TOrdCollectionIter(const TOrdCollectionIter& iter) virtual void ~TOrdCollectionIter() static TClass* Class() virtual const TCollection* GetCollection() const virtual TClass* IsA() const virtual TObject* Next() virtual TIterator& operator=(const TIterator& rhs) TOrdCollectionIter& operator=(const TOrdCollectionIter& rhs) 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.

TOrdCollectionIter(const TOrdCollectionIter &iter)
 Copy ctor.

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

void Reset()
 Reset collection iterator.



Inline Functions


         TOrdCollectionIter TOrdCollectionIter(const TOrdCollectionIter& iter)
                 TIterator& operator=(const TIterator& rhs)
        TOrdCollectionIter& operator=(const TOrdCollectionIter& rhs)
         const TCollection* GetCollection() const
                    TClass* Class()
                    TClass* IsA() const
                       void ShowMembers(TMemberInspector& insp, char* parent)
                       void Streamer(TBuffer& b)
                       void ~TOrdCollectionIter()


Author: Fons Rademakers 13/09/95
Last update: root/cont:$Name: $:$Id: TOrdCollection.cxx,v 1.2 2000/09/08 16:11:03 rdm 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.