class THashTableIter: public TIterator


THashTableIter

Iterator of hash table.


Function Members (Methods)

public:
THashTableIter(const THashTableIter& iter)
THashTableIter(const THashTable* ht, Bool_t dir = kIterForward)
virtual~THashTableIter()
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)
THashTableIter&operator=(const THashTableIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
THashTableIter()
Int_tNextSlot()

Data Members

private:
Int_tfCursorcurrent position in table
Bool_tfDirectioniteration direction
TListIter*fListCursorcurrent position in collision list
const THashTable*fTablehash table being iterated

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

THashTableIter(const THashTable* ht, Bool_t dir = kIterForward)
 Create a hashtable iterator. By default the iteration direction
 is kIterForward. To go backward use kIterBackward.
THashTableIter(const THashTableIter& iter)
 Copy ctor.
TIterator & operator=(const TIterator &rhs)
 Overridden assignment operator.
THashTableIter & operator=(const THashTableIter &rhs)
 Overloaded assignment operator.
~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.
THashTableIter(const THashTableIter& iter)
{ }
const TCollection * GetCollection()
{ return fTable; }

Author: Fons Rademakers 27/09/95
Last update: root/cont:$Id: THashTable.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.