MapConstIterator Class Template Reference
[Graphmaps]

#include <map_iterator.h>

Inheritance diagram for MapConstIterator:

Inheritance graph
[legend]
Collaboration diagram for MapConstIterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

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

Definition at line 192 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 &,
ConstReferenceType, ConstReferenceType
PairReferenceType
 The reference type of map.

Public Member Functions

 MapConstIterator ()
 Default constructor.
 MapConstIterator (const Map &pmap, const KeyIt &pit)
 MapConstIterator (const MapIterator< Map > &pit)
 Constructor to create const iterator from a non const.
PairReferenceType operator * ()
 Dereference operator for the iterator.
PairPointerType operator-> ()
 Arrow operator for the iterator.
MapConstIteratoroperator++ ()
 The pre increment operator of the iterator.
MapConstIterator operator++ (int)
 The post increment operator of the iterator.


Constructor & Destructor Documentation

MapConstIterator const Map &  pmap,
const KeyIt pit
[inline]
 

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

References MapConstIterator::Base, and MapConstIterator::KeyIt.


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