MapIterator Class Template Reference
[Graphmaps]

#include <map_iterator.h>

Inheritance diagram for MapIterator:

Inheritance graph
[legend]
Collaboration diagram for MapIterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename Map>
class lemon::MapIterator< Map >

Compatible iterator with the stl maps' iterators. It iterates on pairs of a key and a value.

Definition at line 96 of file map_iterator.h.

Public Types

typedef MapIteratorBase< Map > Base
 The iterator base class.
typedef Map::KeyType KeyType
 The key type of the iterator.
typedef Map::KeyIt KeyIt
 The iterator to iterate on the keys.
typedef Map::ValueType ValueType
 The value type of the iterator.
typedef Map::ReferenceType ReferenceType
 The reference type of the iterator.
typedef Map::PointerType PointerType
 The pointer type of the iterator.
typedef Map::ConstValueType ConstValueType
 The const value type of the iterator.
typedef Map::ConstReferenceType ConstReferenceType
 The const reference type of the iterator.
typedef Map::ConstPointerType ConstPointerType
 The pointer type of the iterator.
typedef extended_pair< KeyType,
const KeyType &, ValueType,
const ValueType & > 
PairValueType
 The value type of the iterator.
typedef extended_pair< const
KeyType &, const KeyType &,
ReferenceType, ReferenceType
PairReferenceType
 The reference type of the iterator.

Public Member Functions

 MapIterator ()
 Default constructor.
 MapIterator (Map &pmap, const KeyIt &pit)
PairReferenceType operator * ()
 Dereference operator for the iterator.
PairPointerType operator-> ()
 Arrow operator for the iterator.
MapIteratoroperator++ ()
 The pre increment operator of the iterator.
MapIterator operator++ (int)
 The post increment operator of the iterator.


Constructor & Destructor Documentation

MapIterator Map &  pmap,
const KeyIt pit
[inline]
 

Constructor to initalize the iterators returned by the begin() and end(). Definition at line 140 of file map_iterator.h.

References MapIterator::Base, and MapIterator::KeyIt.


The documentation for this class was generated from the following file:
Generated on Thu Sep 30 12:18:37 2004 for LEMON by doxygen 1.3.8