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()
static TClass*TIterator::Class()
virtual const TCollection*GetCollection() const
virtual const TCollection*TIterator::GetCollection() const
virtual Option_t*TIterator::GetOption() const
virtual TClass*IsA() const
virtual TClass*TIterator::IsA() const
virtual TObject*Next()
virtual TObject*TIterator::Next()
virtual booloperator!=(const TIterator& aIter) const
booloperator!=(const THashTableIter& aIter) const
virtual boolTIterator::operator!=(const TIterator&) const
TObject*TIterator::operator()()
virtual TObject*operator*() const
virtual TObject*TIterator::operator*() const
virtual TIterator&operator=(const TIterator& rhs)
THashTableIter&operator=(const THashTableIter& rhs)
virtual TIterator&TIterator::operator=(const TIterator&)
virtual voidReset()
virtual voidTIterator::Reset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTIterator::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
virtual voidTIterator::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTIterator::StreamerNVirtual(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)
 This operator compares two TIterator objects.
bool operator!=(const THashTableIter &aIter)
 This operator compares two THashTableIter objects.
TObject * operator*() const
 Return pointer to current object or nullptr.
THashTableIter()
{ }
const TCollection * GetCollection() const
{ return fTable; }