class THashTableIter: public TIterator


Iterator of hash table.

Function Members (Methods)

THashTableIter(const THashTableIter& iter)
THashTableIter(const THashTable* ht, Bool_t dir = kIterForward)
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*TIterator::GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
virtual booloperator!=(const TIterator& aIter) const
booloperator!=(const THashTableIter& aIter) const
virtual TObject*operator*() const
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)

Data Members

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.
 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.
bool operator!=(const TIterator &aIter)
 This operator compares two TIterator objects.
bool operator!=(const THashTableIter &aIter)
 This operator compares two THashTableIter objects.
TObject * operator*()
 Return pointer to current object or nullptr.
THashTableIter(const THashTableIter& iter)
{ }
const TCollection * GetCollection()
{ return fTable; }

Author: Fons Rademakers 27/09/95
Last change: root/cont:$Id: THashTable.h 23198 2008-04-14 09:23:08Z rdm $
Last generated: 2008-06-25 08:47
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.