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

Iterator of map.

Definition at line 148 of file TMap.h.

Public Member Functions

 TMapIter (const TMap *map, Bool_t dir=kIterForward)
 
 TMapIter (const TMapIter &iter)
 Copy ctor. More...
 
 ~TMapIter ()
 Map iterator dtor. More...
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator. More...
 
TMapIteroperator= (const TMapIter &rhs)
 Overloaded assignment operator. More...
 
const TCollectionGetCollection () const
 
TObjectNext ()
 Returns the next key from a map. More...
 
void Reset ()
 Reset the map iterator. 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...
 
- 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

const TMapfMap
 
THashTableIterfCursor
 
Bool_t fDirection
 

Additional Inherited Members

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

#include <TMap.h>

+ Inheritance diagram for TMapIter:
+ Collaboration diagram for TMapIter:

Constructor & Destructor Documentation

TMapIter::TMapIter ( )
inlineprivate

Definition at line 158 of file TMap.h.

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

Copy ctor.

Definition at line 472 of file TMap.cxx.

TMapIter::~TMapIter ( )

Map iterator dtor.

Definition at line 522 of file TMap.cxx.

Member Function Documentation

const TCollection* TMapIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 167 of file TMap.h.

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 531 of file TMap.cxx.

Referenced by TUnfoldSys::DoBackgroundSubtraction(), TUnfoldSys::GetBackground(), TUnfoldSys::GetEmatrixTotal(), TUnfoldSys::GetSummedErrorMatrixXX(), TUnfoldSys::GetSummedErrorMatrixYY(), and TUnfoldSys::PrepareSysError().

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

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 552 of file TMap.cxx.

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

This operator compares two TMapIter objects.

Definition at line 564 of file TMap.cxx.

TObject * TMapIter::operator* ( ) const
virtual

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

Reimplemented from TIterator.

Definition at line 572 of file TMap.cxx.

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

Overridden assignment operator.

Reimplemented from TIterator.

Definition at line 487 of file TMap.cxx.

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

Overloaded assignment operator.

Definition at line 505 of file TMap.cxx.

void TMapIter::Reset ( void  )
virtual

Reset the map iterator.

Implements TIterator.

Definition at line 544 of file TMap.cxx.

Referenced by ~TMapIter().

Member Data Documentation

THashTableIter* TMapIter::fCursor
private

Definition at line 155 of file TMap.h.

Referenced by Next(), operator!=(), operator*(), operator=(), Reset(), and TMapIter().

Bool_t TMapIter::fDirection
private

Definition at line 156 of file TMap.h.

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

const TMap* TMapIter::fMap
private

Definition at line 154 of file TMap.h.

Referenced by GetCollection(), Next(), operator=(), and TMapIter().


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