Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
THashTableIter Class Reference

Iterator of hash table.

Definition at line 115 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 TCollectionGetCollection () const override
virtual Option_tGetOption () const
TClassIsA () const override
TObjectNext () 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.
TObjectoperator() ()
TObjectoperator* () const override
 Return pointer to current object or nullptr.
THashTableIteroperator= (const THashTableIter &rhs)
 Overloaded assignment operator.
TIteratoroperator= (const TIterator &rhs) override
 Overridden assignment operator.
Bool_t operator== (const TIterator &other) const
void Reset () override
 Reset the hashtable iterator.
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)

Static Public Member Functions

static TClassClass ()
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
TListIterfListCursor
const THashTablefTable

#include <THashTable.h>

Inheritance diagram for THashTableIter:
TIterator

Constructor & Destructor Documentation

◆ THashTableIter() [1/3]

THashTableIter::THashTableIter ( )
inlineprivate

Definition at line 123 of file THashTable.h.

◆ THashTableIter() [2/3]

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 472 of file THashTable.cxx.

◆ THashTableIter() [3/3]

THashTableIter::THashTableIter ( const THashTableIter & iter)

Copy ctor.

Definition at line 483 of file THashTable.cxx.

◆ ~THashTableIter()

THashTableIter::~THashTableIter ( )

Delete hashtable iterator.

Definition at line 540 of file THashTable.cxx.

Member Function Documentation

◆ Class()

TClass * THashTableIter::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

const char * THashTableIter::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

constexpr Version_t THashTableIter::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 140 of file THashTable.h.

◆ DeclFileName()

const char * THashTableIter::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 140 of file THashTable.h.

◆ GetCollection()

const TCollection * THashTableIter::GetCollection ( ) const
inlineoverridevirtual

Implements TIterator.

Definition at line 133 of file THashTable.h.

◆ GetOption()

virtual Option_t * TIterator::GetOption ( ) const
inlinevirtualinherited

Reimplemented in TListIter, and TTreeFriendLeafIter.

Definition at line 40 of file TIterator.h.

◆ IsA()

TClass * THashTableIter::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TIterator.

Definition at line 140 of file THashTable.h.

◆ Next()

TObject * THashTableIter::Next ( )
overridevirtual

Return next object in hashtable. Returns 0 when no more objects in table.

Implements TIterator.

Definition at line 548 of file THashTable.cxx.

◆ NextSlot()

Int_t THashTableIter::NextSlot ( )
private

Returns index of next slot in table containing list to be iterated.

Definition at line 569 of file THashTable.cxx.

◆ operator!=() [1/2]

Bool_t THashTableIter::operator!= ( const THashTableIter & aIter) const

This operator compares two THashTableIter objects.

Definition at line 618 of file THashTable.cxx.

◆ operator!=() [2/2]

Bool_t THashTableIter::operator!= ( const TIterator & aIter) const
overridevirtual

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 606 of file THashTable.cxx.

◆ operator()()

TObject * TIterator::operator() ( )
inlineinherited

Definition at line 43 of file TIterator.h.

◆ operator*()

TObject * THashTableIter::operator* ( ) const
overridevirtual

Return pointer to current object or nullptr.

Reimplemented from TIterator.

Definition at line 626 of file THashTable.cxx.

◆ operator=() [1/2]

THashTableIter & THashTableIter::operator= ( const THashTableIter & rhs)

Overloaded assignment operator.

Definition at line 520 of file THashTable.cxx.

◆ operator=() [2/2]

TIterator & THashTableIter::operator= ( const TIterator & rhs)
overridevirtual

Overridden assignment operator.

Implements TIterator.

Definition at line 499 of file THashTable.cxx.

◆ operator==()

Bool_t TIterator::operator== ( const TIterator & other) const
inlineinherited

Definition at line 45 of file TIterator.h.

◆ Reset()

void THashTableIter::Reset ( )
overridevirtual

Reset the hashtable iterator.

Either to beginning or end, depending on the initial iteration direction.

Implements TIterator.

Definition at line 594 of file THashTable.cxx.

◆ Streamer()

void THashTableIter::Streamer ( TBuffer & )
overridevirtual

Reimplemented from TIterator.

◆ StreamerNVirtual()

void THashTableIter::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 140 of file THashTable.h.

Member Data Documentation

◆ fCursor

Int_t THashTableIter::fCursor
private

Definition at line 119 of file THashTable.h.

◆ fDirection

Bool_t THashTableIter::fDirection
private

Definition at line 121 of file THashTable.h.

◆ fListCursor

TListIter* THashTableIter::fListCursor
private

Definition at line 120 of file THashTable.h.

◆ fTable

const THashTable* THashTableIter::fTable
private

Definition at line 118 of file THashTable.h.


The documentation for this class was generated from the following files: