Public Types | |
using | const_pointer = const TObject ** |
using | difference_type = std::ptrdiff_t |
using | iterator_category = std::bidirectional_iterator_tag |
using | pointer = TObject ** |
using | reference = const TObject *& |
using | value_type = TObject * |
Public Member Functions | |
TMapIter (const TMap *map, Bool_t dir=kIterForward) | |
Create a map iterator. Use dir to specify the desired iteration direction. | |
TMapIter (const TMapIter &iter) | |
Copy ctor. | |
~TMapIter () | |
Map iterator dtor. | |
const TCollection * | GetCollection () const |
TObject * | Next () |
Returns the next key from a map. | |
Bool_t | operator!= (const TIterator &aIter) const |
This operator compares two TIterator objects. | |
Bool_t | operator!= (const TMapIter &aIter) const |
This operator compares two TMapIter objects. | |
TObject * | operator* () const |
Return pointer to current object (a TPair) or nullptr. | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. | |
TMapIter & | operator= (const TMapIter &rhs) |
Overloaded assignment operator. | |
void | Reset () |
Reset the map iterator. | |
![]() | |
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>
using TMapIter::const_pointer = const TObject ** |
using TMapIter::difference_type = std::ptrdiff_t |
using TMapIter::iterator_category = std::bidirectional_iterator_tag |
using TMapIter::pointer = TObject ** |
using TMapIter::reference = const TObject *& |
using TMapIter::value_type = TObject * |
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 |
|
virtual |
|
private |