ROOT logo
ROOT » CORE » CONT » THashTableIter

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()
virtual booloperator!=(const TIterator& aIter) const
booloperator!=(const THashTableIter& aIter) const
TObject*TIterator::operator()()
virtual TObject*operator*() const
virtual TIterator&operator=(const TIterator& rhs)
THashTableIter&operator=(const THashTableIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

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