ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
THashTableIter Class Reference

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...
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator. More...
 
THashTableIteroperator= (const THashTableIter &rhs)
 Overloaded assignment operator. More...
 
const TCollectionGetCollection () const
 
TObjectNext ()
 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...
 
TObjectoperator* () const
 Return pointer to current object or nullptr. More...
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
virtual Option_tGetOption () const
 
TObjectoperator() ()
 
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 THashTablefTable
 
Int_t fCursor
 
TListIterfListCursor
 
Bool_t fDirection
 

Additional Inherited Members

- Protected Member Functions inherited from TIterator
 TIterator ()
 
 TIterator (const TIterator &)
 

#include <THashTable.h>

+ Inheritance diagram for THashTableIter:
+ Collaboration diagram for THashTableIter:

Constructor & Destructor Documentation

THashTableIter::THashTableIter ( )
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 373 of file THashTable.cxx.

THashTableIter::~THashTableIter ( )

Delete hashtable iterator.

Definition at line 426 of file THashTable.cxx.

Member Function Documentation

const TCollection* THashTableIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 124 of file THashTable.h.

Referenced by TMapIter::operator=(), and TMapIter::TMapIter().

TObject * THashTableIter::Next ( )
virtual

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

Implements TIterator.

Definition at line 434 of file THashTable.cxx.

Referenced by TMapIter::Next().

Int_t THashTableIter::NextSlot ( )
private

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

Definition at line 453 of file THashTable.cxx.

Referenced by Next().

Bool_t THashTableIter::operator!= ( const TIterator aIter) const
virtual

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 488 of file THashTable.cxx.

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

This operator compares two THashTableIter objects.

Definition at line 500 of file THashTable.cxx.

TObject * THashTableIter::operator* ( ) const
virtual

Return pointer to current object or nullptr.

Reimplemented from TIterator.

Definition at line 508 of file THashTable.cxx.

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

Overridden assignment operator.

Reimplemented from TIterator.

Definition at line 389 of file THashTable.cxx.

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

Overloaded assignment operator.

Definition at line 408 of file THashTable.cxx.

void THashTableIter::Reset ( void  )
virtual

Reset the hashtable iterator.

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

Implements TIterator.

Definition at line 476 of file THashTable.cxx.

Member Data Documentation

Int_t THashTableIter::fCursor
private

Definition at line 110 of file THashTable.h.

Referenced by NextSlot(), operator=(), Reset(), and THashTableIter().

Bool_t THashTableIter::fDirection
private

Definition at line 112 of file THashTable.h.

Referenced by Next(), NextSlot(), operator=(), Reset(), and THashTableIter().

TListIter* THashTableIter::fListCursor
private
const THashTable* THashTableIter::fTable
private

Definition at line 109 of file THashTable.h.

Referenced by GetCollection(), Next(), NextSlot(), operator=(), Reset(), and THashTableIter().


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