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 Bool_toperator!=(const TIterator& aIter) const
Bool_toperator!=(const THashTableIter& aIter) const
TObject*TIterator::operator()()
virtual TObject*operator*() const
virtual TIterator&operator=(const TIterator& rhs)
THashTableIter&operator=(const THashTableIter& rhs)
Bool_tTIterator::operator==(const TIterator& other) const
virtual voidReset()
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_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_t operator!=(const TIterator& aIter) const
 This operator compares two TIterator objects.
Bool_t 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; }