![]() |
ROOT 6.07/09 Reference Guide |
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 TCollection * | GetCollection () const |
TObject * | Next () |
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... | |
TObject * | operator* () const |
Return pointer to current object (a TPair) or nullptr. More... | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. More... | |
TMapIter & | operator= (const TMapIter &rhs) |
Overloaded assignment operator. More... | |
void | Reset () |
Reset the map iterator. More... | |
![]() | |
virtual | ~TIterator () |
virtual Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
Private Member Functions | |
TMapIter () | |
Private Attributes | |
THashTableIter * | fCursor |
Bool_t | fDirection |
const TMap * | fMap |
Additional Inherited Members | |
![]() | |
TIterator () | |
TIterator (const TIterator &) | |
#include <TMap.h>
TMapIter::TMapIter | ( | const TMap * | map, |
Bool_t | dir = kIterForward |
||
) |
|
inlinevirtual |
|
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.
|
virtual |
Bool_t TMapIter::operator!= | ( | const TMapIter & | aIter | ) | const |
|
virtual |
|
private |