THashTableIter


class description - source file - inheritance tree

class THashTableIter : public TIterator

    private:
THashTableIter THashTableIter() Int_t NextSlot() public:
THashTableIter THashTableIter(THashTable* ht, Bool_t dir = kIterForward) THashTableIter THashTableIter(THashTableIter& iter) virtual void ~THashTableIter() TClass* Class() virtual const TCollection* GetCollection() virtual TClass* IsA() virtual TObject* Next() virtual TIterator& operator=(TIterator& rhs) THashTableIter& operator=(THashTableIter& rhs) virtual void Reset() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
static const THashTable* fTable hash table being iterated Int_t fCursor current position in table TListIter* fListCursor current position in collision list Bool_t fDirection iteration direction

Class Description

                                                                      
 THashTable                                                           
                                                                      
 THashTable implements a hash table to store TObject's. The hash      
 value is calculated using the value returned by the TObject's        
 Hash() function. Each class inheriting from TObject can override     
 Hash() as it sees fit.                                               
 THashTable does not preserve the insertion order of the objects.     
 If the insertion order is important AND fast retrieval is needed     
 use THashList instead.                                               

/*

*/

                                                                      


THashTableIter(const THashTable *ht, Bool_t dir)
 Create a hashtable iterator. By default the iteration direction
 is kIterForward. To go backward use kIterBackward.

THashTableIter(const THashTableIter &iter)
 Copy ctor.

~THashTableIter()
 Delete hashtable iterator.

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

Int_t NextSlot()
 Returns index of next slot in table containing list to be iterated.

void Reset()
 Reset the hashtable iterator. Either to beginning or end, depending on
 the initial iteration direction.



Inline Functions


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


Author: Fons Rademakers 27/09/95
Last update: 2.22/07 05/07/99 18.54.36 by Fons Rademakers
Copyright (c) 1995-1999, 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.