Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MapIterator Class Template Reference
[GraphmapsGraphmaps]

#include <lemon/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::Key Key
 The key type of the iterator.
typedef Map::KeyIt KeyIt
 The iterator to iterate on the keys.
typedef Map::Value Value
 The value type of the iterator.
typedef Map::Reference Reference
 The reference type of the iterator.
typedef Map::Pointer Pointer
 The pointer type of the iterator.
typedef Map::ConstValue ConstValue
 The const value type of the iterator.
typedef Map::ConstReference ConstReference
 The const reference type of the iterator.
typedef Map::ConstPointer ConstPointer
 The pointer type of the iterator.
typedef extended_pair< Key,
const Key &, Value, const
Value & > 
PairValue
 The value type of the iterator.
typedef extended_pair< const
Key &, const Key &, Reference,
Reference
PairReference
 The reference type of the iterator.

Public Member Functions

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

Classes

class  PairPointer
 The pointer type of the iterator. More...


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.


The documentation for this class was generated from the following file:
Generated on Sat Mar 19 10:58:52 2005 for LEMON by  doxygen 1.4.1