Iterator of hash table.
Definition at line 113 of file THashTable.h.
Public Member Functions | |
THashTableIter (const THashTable *ht, Bool_t dir=kIterForward) | |
Create a hashtable iterator. More... | |
THashTableIter (const THashTableIter &iter) | |
Copy ctor. More... | |
~THashTableIter () | |
Delete hashtable iterator. More... | |
const TCollection * | GetCollection () const |
TObject * | Next () |
Return next object in hashtable. Returns 0 when no more objects in table. More... | |
Bool_t | operator!= (const THashTableIter &aIter) const |
This operator compares two THashTableIter objects. More... | |
Bool_t | operator!= (const TIterator &aIter) const |
This operator compares two TIterator objects. More... | |
TObject * | operator* () const |
Return pointer to current object or nullptr. More... | |
THashTableIter & | operator= (const THashTableIter &rhs) |
Overloaded assignment operator. More... | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. More... | |
void | Reset () |
Reset the hashtable iterator. More... | |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual const TCollection * | GetCollection () const =0 |
virtual Option_t * | GetOption () const |
virtual TObject * | Next ()=0 |
virtual Bool_t | operator!= (const TIterator &) const |
Compare two iterator objects. More... | |
TObject * | operator() () |
virtual TObject * | operator* () const |
Return current object or nullptr. More... | |
virtual TIterator & | operator= (const TIterator &) |
Bool_t | operator== (const TIterator &other) const |
virtual void | Reset ()=0 |
Private Member Functions | |
THashTableIter () | |
Int_t | NextSlot () |
Returns index of next slot in table containing list to be iterated. More... | |
Private Attributes | |
Int_t | fCursor |
Bool_t | fDirection |
TListIter * | fListCursor |
const THashTable * | fTable |
Additional Inherited Members | |
Protected Member Functions inherited from TIterator | |
TIterator () | |
TIterator (const TIterator &) | |
#include <THashTable.h>
|
inlineprivate |
Definition at line 121 of file THashTable.h.
THashTableIter::THashTableIter | ( | const THashTable * | ht, |
Bool_t | dir = kIterForward |
||
) |
Create a hashtable iterator.
By default the iteration direction is kIterForward. To go backward use kIterBackward.
Definition at line 473 of file THashTable.cxx.
THashTableIter::THashTableIter | ( | const THashTableIter & | iter | ) |
Copy ctor.
Definition at line 484 of file THashTable.cxx.
THashTableIter::~THashTableIter | ( | ) |
Delete hashtable iterator.
Definition at line 541 of file THashTable.cxx.
|
inlinevirtual |
Implements TIterator.
Definition at line 131 of file THashTable.h.
|
virtual |
Return next object in hashtable. Returns 0 when no more objects in table.
Implements TIterator.
Definition at line 549 of file THashTable.cxx.
|
private |
Returns index of next slot in table containing list to be iterated.
Definition at line 570 of file THashTable.cxx.
Bool_t THashTableIter::operator!= | ( | const THashTableIter & | aIter | ) | const |
This operator compares two THashTableIter objects.
Definition at line 619 of file THashTable.cxx.
|
virtual |
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 607 of file THashTable.cxx.
|
virtual |
Return pointer to current object or nullptr.
Reimplemented from TIterator.
Definition at line 627 of file THashTable.cxx.
THashTableIter & THashTableIter::operator= | ( | const THashTableIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 521 of file THashTable.cxx.
Overridden assignment operator.
Reimplemented from TIterator.
Definition at line 500 of file THashTable.cxx.
Reset the hashtable iterator.
Either to beginning or end, depending on the initial iteration direction.
Implements TIterator.
Definition at line 595 of file THashTable.cxx.
|
private |
Definition at line 117 of file THashTable.h.
|
private |
Definition at line 119 of file THashTable.h.
|
private |
Definition at line 118 of file THashTable.h.
|
private |
Definition at line 116 of file THashTable.h.