library: libCore
#include "THashTable.h"

THashTableIter


class description - header file - source file
viewCVS header - viewCVS source

class THashTableIter: public TIterator

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
THashTableIter(const THashTableIter& iter)
THashTableIter(const THashTable* ht, Bool_t dir = kIterForward)
~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:
const THashTable*fTablehash table being iterated
Int_tfCursorcurrent position in table
TListIter*fListCursorcurrent position in collision list
Bool_tfDirectioniteration 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.
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 TCollection * GetCollection()
{ return fTable; }

Author: Fons Rademakers 27/09/95
Last update: root/cont:$Name: $:$Id: THashTable.cxx,v 1.14 2006/10/27 16:03:37 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.