ork::MapIterator< key, type > Class Template Reference
[core]

A map iterator. More...

#include <Iterator.h>

List of all members.

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.

Detailed Description

template<typename key, typename type>
class ork::MapIterator< key, type >

A map iterator.


Constructor & Destructor Documentation

template<typename key , typename type >
ork::MapIterator< key, type >::MapIterator (  )  [inline]

Creates a map iterator for an empty map.

template<typename key , typename type >
ork::MapIterator< key, type >::MapIterator ( map< key, type > &  c  )  [inline]

Creates a map iterator for the given map.


Member Function Documentation

template<typename key , typename type >
bool ork::MapIterator< key, type >::hasNext (  )  [inline]

Returns true if the iteration is not yet finished.

template<typename key , typename type >
type ork::MapIterator< key, type >::next ( key &  k  )  [inline]

Returns the element at the current iterator position.

The iterator position is then incremented.

Parameters:
[out] k the key of this element.
template<typename key , typename type >
type ork::MapIterator< key, type >::next (  )  [inline]

Returns the element at the current iterator position.

The iterator position is then incremented.

template<typename key , typename type >
unsigned int ork::MapIterator< key, type >::size (  )  [inline]

Returns the size of the map for which this iterator has been created.


Generated on Mon Oct 18 09:36:07 2010 for ork by  doxygen 1.6.1