|
ROOT 6.18/05 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... | |
Public Member Functions inherited from TIterator | |
| virtual | ~TIterator () |
| virtual const TCollection * | GetCollection () const =0 |
| virtual Option_t * | GetOption () const |
| virtual TObject * | Next ()=0 |
| virtual Bool_t | operator!= (const TIterator &) const |
| Compare two iterator objects. More... | |
| TObject * | operator() () |
| virtual TObject * | operator* () const |
| Return current object or nullptr. More... | |
| virtual TIterator & | operator= (const TIterator &) |
| Bool_t | operator== (const TIterator &other) const |
| virtual void | Reset ()=0 |
Private Member Functions | |
| TMapIter () | |
Private Attributes | |
| THashTableIter * | fCursor |
| Bool_t | fDirection |
| const TMap * | fMap |
Additional Inherited Members | |
Protected Member Functions inherited from TIterator | |
| 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 |