Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMapIter Class Reference

Iterator of map.

Definition at line 144 of file TMap.h.

Public Member Functions

 TMapIter (const TMap *map, Bool_t dir=kIterForward)
 Create a map iterator. Use dir to specify the desired iteration direction. More...
 
 TMapIter (const TMapIter &iter)
 Copy ctor. More...
 
 ~TMapIter ()
 Map iterator dtor. More...
 
const TCollectionGetCollection () const
 
TObjectNext ()
 Returns the next key from a map. More...
 
Bool_t operator!= (const TIterator &aIter) const
 This operator compares two TIterator objects. More...
 
Bool_t operator!= (const TMapIter &aIter) const
 This operator compares two TMapIter objects. More...
 
TObjectoperator* () const
 Return pointer to current object (a TPair) or nullptr. More...
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator. More...
 
TMapIteroperator= (const TMapIter &rhs)
 Overloaded assignment operator. More...
 
void Reset ()
 Reset the map iterator. More...
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
virtual Option_tGetOption () const
 
TObjectoperator() ()
 
Bool_t operator== (const TIterator &other) const
 

Private Member Functions

 TMapIter ()
 

Private Attributes

THashTableIterfCursor
 
Bool_t fDirection
 
const TMapfMap
 

Additional Inherited Members

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

#include <TMap.h>

Inheritance diagram for TMapIter:
[legend]

Constructor & Destructor Documentation

◆ TMapIter() [1/3]

TMapIter::TMapIter ( )
inlineprivate

Definition at line 154 of file TMap.h.

◆ TMapIter() [2/3]

TMapIter::TMapIter ( const TMap map,
Bool_t  dir = kIterForward 
)

Create a map iterator. Use dir to specify the desired iteration direction.

Definition at line 472 of file TMap.cxx.

◆ TMapIter() [3/3]

TMapIter::TMapIter ( const TMapIter iter)

Copy ctor.

Definition at line 482 of file TMap.cxx.

◆ ~TMapIter()

TMapIter::~TMapIter ( )

Map iterator dtor.

Definition at line 532 of file TMap.cxx.

Member Function Documentation

◆ GetCollection()

const TCollection* TMapIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 163 of file TMap.h.

◆ Next()

TObject * TMapIter::Next ( )
virtual

Returns the next key from a map.

Use TMap::GetValue() to get the value associated with the key. Returns 0 when no more items in map.

Implements TIterator.

Definition at line 541 of file TMap.cxx.

◆ operator!=() [1/2]

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

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 562 of file TMap.cxx.

◆ operator!=() [2/2]

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

This operator compares two TMapIter objects.

Definition at line 574 of file TMap.cxx.

◆ operator*()

TObject * TMapIter::operator* ( ) const
virtual

Return pointer to current object (a TPair) or nullptr.

Reimplemented from TIterator.

Definition at line 582 of file TMap.cxx.

◆ operator=() [1/2]

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

Overridden assignment operator.

Reimplemented from TIterator.

Definition at line 497 of file TMap.cxx.

◆ operator=() [2/2]

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

Overloaded assignment operator.

Definition at line 515 of file TMap.cxx.

◆ Reset()

void TMapIter::Reset ( void  )
virtual

Reset the map iterator.

Implements TIterator.

Definition at line 554 of file TMap.cxx.

Member Data Documentation

◆ fCursor

THashTableIter* TMapIter::fCursor
private

Definition at line 151 of file TMap.h.

◆ fDirection

Bool_t TMapIter::fDirection
private

Definition at line 152 of file TMap.h.

◆ fMap

const TMap* TMapIter::fMap
private

Definition at line 150 of file TMap.h.

Libraries for TMapIter:
[legend]

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