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

IdMap Class Template Reference
[Mutils]

#include <lemon/map_utils.h>

List of all members.


Detailed Description

template<typename _Graph, typename _Item>
class lemon::IdMap< _Graph, _Item >

The IdMap class provides an unique and immutable mapping for each item in the graph.

Definition at line 230 of file map_utils.h.

Public Member Functions

 IdMap (const Graph &_graph)
 Constructor.
int operator[] (const Item &item) const
 Gives back the id of the item.
InverseMap inverse () const
 Gives back the inverse of the map.

Classes

class  InverseMap
 The class represents the inverse of the map. More...


Constructor & Destructor Documentation

IdMap const Graph &  _graph  )  [inline]
 

Constructor for creating id map.

Definition at line 256 of file map_utils.h.


Member Function Documentation

int operator[] const Item &  item  )  const [inline]
 

Gives back the immutable and unique id of the map.

Definition at line 261 of file map_utils.h.

InverseMap inverse  )  const [inline]
 

Gives back the inverse of the map.

Definition at line 266 of file map_utils.h.


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