Iterator of hash table.
Definition at line 114 of file THashTable.h.
Public Member Functions | |
THashTableIter (const THashTable *ht, Bool_t dir=kIterForward) | |
Create a hashtable iterator. | |
THashTableIter (const THashTableIter &iter) | |
Copy ctor. | |
~THashTableIter () | |
Delete hashtable iterator. | |
const TCollection * | GetCollection () const override |
TClass * | IsA () const override |
TObject * | Next () override |
Return next object in hashtable. Returns 0 when no more objects in table. | |
Bool_t | operator!= (const THashTableIter &aIter) const |
This operator compares two THashTableIter objects. | |
Bool_t | operator!= (const TIterator &aIter) const override |
This operator compares two TIterator objects. | |
TObject * | operator* () const override |
Return pointer to current object or nullptr. | |
THashTableIter & | operator= (const THashTableIter &rhs) |
Overloaded assignment operator. | |
TIterator & | operator= (const TIterator &rhs) override |
Overridden assignment operator. | |
void | Reset () override |
Reset the hashtable iterator. | |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TIterator | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Private Member Functions | |
THashTableIter () | |
Int_t | NextSlot () |
Returns index of next slot in table containing list to be iterated. | |
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 122 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.
|
static |
|
inlinestaticconstexpr |
Definition at line 139 of file THashTable.h.
|
inlinestatic |
Definition at line 139 of file THashTable.h.
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 132 of file THashTable.h.
|
inlineoverridevirtual |
Reimplemented from TIterator.
Definition at line 139 of file THashTable.h.
|
overridevirtual |
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.
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 607 of file THashTable.cxx.
|
overridevirtual |
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.
Implements TIterator.
Definition at line 500 of file THashTable.cxx.
|
overridevirtual |
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.
|
inline |
Definition at line 139 of file THashTable.h.
|
private |
Definition at line 118 of file THashTable.h.
|
private |
Definition at line 120 of file THashTable.h.
|
private |
Definition at line 119 of file THashTable.h.
|
private |
Definition at line 117 of file THashTable.h.