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

A multimap iterator. More...

#include <Iterator.h>

List of all members.

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.

Detailed Description

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

A multimap iterator.


Constructor & Destructor Documentation

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

Creates a multimap iterator for an empty multimap.

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

Creates a multimap iterator for the given multimap.

template<typename key , typename type >
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.


Member Function Documentation

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

Returns true if the iteration is not yet finished.

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

Returns the element at the current iterator position.

The iterator position is then incremented.

template<typename key , typename type >
type ork::MultiMapIterator< 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::MultiMapIterator< key, type >::size (  )  [inline]

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


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