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 override |
TClass * | IsA () const override |
TObject * | Next () override |
Returns the next key from a map. | |
Bool_t | operator!= (const TIterator &aIter) const override |
This operator compares two TIterator objects. | |
Bool_t | operator!= (const TMapIter &aIter) const |
This operator compares two TMapIter objects. | |
TObject * | operator* () const override |
Return pointer to current object (a TPair) or nullptr. | |
TIterator & | operator= (const TIterator &rhs) override |
Overridden assignment operator. | |
TMapIter & | operator= (const TMapIter &rhs) |
Overloaded assignment operator. | |
void | Reset () override |
Reset the map iterator. | |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TIterator | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
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>
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 |
||
) |
|
static |
|
inlinestaticconstexpr |
|
inlinestatic |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
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.
|
overridevirtual |
|
overridevirtual |
|
inline |
|
private |