A multimap iterator. More...
#include <Iterator.h>
Public Member Functions | |
MultiMapIterator () | |
Creates a multimap iterator for an empty multimap. | |
MultiMapIterator (multimap< key, type > &c) | |
Creates a multimap iterator for the given multimap. | |
MultiMapIterator (key k, multimap< key, type > &c) | |
Creates a multimap iterator for the values associated with the given key in the given multimap. | |
unsigned int | size () |
Returns the size of the multimap for which this iterator has been created. | |
bool | hasNext () |
Returns true if the iteration is not yet finished. | |
type | next () |
Returns the element at the current iterator position. | |
type | next (key &k) |
Returns the element at the current iterator position. |
A multimap iterator.
ork::MultiMapIterator< key, type >::MultiMapIterator | ( | ) | [inline] |
Creates a multimap iterator for an empty multimap.
ork::MultiMapIterator< key, type >::MultiMapIterator | ( | multimap< key, type > & | c | ) | [inline] |
Creates a multimap iterator for the given multimap.
ork::MultiMapIterator< key, type >::MultiMapIterator | ( | key | k, | |
multimap< key, type > & | c | |||
) | [inline] |
Creates a multimap iterator for the values associated with the given key in the given multimap.
bool ork::MultiMapIterator< key, type >::hasNext | ( | ) | [inline] |
Returns true if the iteration is not yet finished.
type ork::MultiMapIterator< key, type >::next | ( | key & | k | ) | [inline] |
Returns the element at the current iterator position.
The iterator position is then incremented.
type ork::MultiMapIterator< key, type >::next | ( | ) | [inline] |
Returns the element at the current iterator position.
The iterator position is then incremented.
unsigned int ork::MultiMapIterator< key, type >::size | ( | ) | [inline] |
Returns the size of the multimap for which this iterator has been created.