ROOT
6.07/01
Reference Guide
|
Iterator of hash table.
Definition at line 106 of file THashTable.h.
Public Member Functions | |
THashTableIter (const THashTable *ht, Bool_t dir=kIterForward) | |
THashTableIter (const THashTableIter &iter) | |
Copy ctor. More... | |
~THashTableIter () | |
Delete hashtable iterator. More... | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. More... | |
THashTableIter & | operator= (const THashTableIter &rhs) |
Overloaded assignment operator. More... | |
const TCollection * | GetCollection () const |
TObject * | Next () |
Return next object in hashtable. Returns 0 when no more objects in table. More... | |
void | Reset () |
Reset the hashtable iterator. More... | |
Bool_t | operator!= (const TIterator &aIter) const |
This operator compares two TIterator objects. More... | |
Bool_t | operator!= (const THashTableIter &aIter) const |
This operator compares two THashTableIter objects. More... | |
TObject * | operator* () const |
Return pointer to current object or nullptr. More... | |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
Private Member Functions | |
THashTableIter () | |
Int_t | NextSlot () |
Returns index of next slot in table containing list to be iterated. More... | |
Private Attributes | |
const THashTable * | fTable |
Int_t | fCursor |
TListIter * | fListCursor |
Bool_t | fDirection |
Additional Inherited Members | |
Protected Member Functions inherited from TIterator | |
TIterator () | |
TIterator (const TIterator &) | |
#include <THashTable.h>
|
inlineprivate |
Definition at line 114 of file THashTable.h.
THashTableIter::THashTableIter | ( | const THashTable * | ht, |
Bool_t | dir = kIterForward |
||
) |
THashTableIter::THashTableIter | ( | const THashTableIter & | iter | ) |
Copy ctor.
Definition at line 374 of file THashTable.cxx.
THashTableIter::~THashTableIter | ( | ) |
Delete hashtable iterator.
Definition at line 427 of file THashTable.cxx.
|
inlinevirtual |
Implements TIterator.
Definition at line 124 of file THashTable.h.
Referenced by TMapIter::operator=(), and TMapIter::TMapIter().
|
virtual |
Return next object in hashtable. Returns 0 when no more objects in table.
Implements TIterator.
Definition at line 435 of file THashTable.cxx.
Referenced by TMapIter::Next().
|
private |
Returns index of next slot in table containing list to be iterated.
Definition at line 454 of file THashTable.cxx.
Referenced by Next().
|
virtual |
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 489 of file THashTable.cxx.
Bool_t THashTableIter::operator!= | ( | const THashTableIter & | aIter | ) | const |
This operator compares two THashTableIter objects.
Definition at line 501 of file THashTable.cxx.
|
virtual |
Return pointer to current object or nullptr.
Reimplemented from TIterator.
Definition at line 509 of file THashTable.cxx.
Overridden assignment operator.
Reimplemented from TIterator.
Definition at line 390 of file THashTable.cxx.
THashTableIter & THashTableIter::operator= | ( | const THashTableIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 409 of file THashTable.cxx.
Reset the hashtable iterator.
Either to beginning or end, depending on the initial iteration direction.
Implements TIterator.
Definition at line 477 of file THashTable.cxx.
|
private |
Definition at line 110 of file THashTable.h.
Referenced by NextSlot(), operator=(), Reset(), and THashTableIter().
|
private |
Definition at line 112 of file THashTable.h.
Referenced by Next(), NextSlot(), operator=(), Reset(), and THashTableIter().
|
private |
Definition at line 111 of file THashTable.h.
Referenced by Next(), operator!=(), operator*(), operator=(), Reset(), THashTableIter(), and ~THashTableIter().
|
private |
Definition at line 109 of file THashTable.h.
Referenced by GetCollection(), Next(), NextSlot(), operator=(), Reset(), and THashTableIter().