MapIterator< K, V > Class Template Reference
#include <iterator.h>
List of all members.
Detailed Description
template<typename K, typename V>
class MapIterator< K, V >
Implements a bidirectional iterator for Map.
- Author:
- Mark Maloof
- Version:
- 1.0, 3/13/13
Constructor & Destructor Documentation
template<typename K , typename V >
Member Function Documentation
template<typename K , typename V >
Returns true if this iterator has a next value.
- Returns:
- true if this iterator has a next value; false otherwise.
template<typename K , typename V >
bool MapIterator< K, V >::hasPrevious |
( |
|
) |
const [inline] |
Returns true if this iterator has a previous value.
- Returns:
- true if this iterator has a previous value; false otherwise.
template<typename K , typename V >
Returns a reference to the next value in this iterator.
- Returns:
- a reference to the next value
- Exceptions:
-
template<typename K , typename V >
Returns a reference to the previous value in this iterator.
- Returns:
- a reference to the previous value
- Exceptions:
-
template<typename K , typename V >
void MapIterator< K, V >::printInternal |
( |
|
) |
const [inline] |
A utility method that prints the internal state of this iterator.
template<typename K , typename V >
void MapIterator< K, V >::put |
( |
const V & |
value |
) |
[inline] |
Puts the value at the position of this iterator to the specified value.
- Parameters:
-
| value | the value to be set |
The documentation for this class was generated from the following file: