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