#include <lemon/maps.h>
InverseMap
or with the operator()
member. Public Member Functions | |
IdMap (const Graph &graph) | |
Constructor. | |
int | operator[] (const Item &item) const |
Gives back the id of the item. | |
Item | operator() (int id) |
Gives back the item by its id. | |
InverseMap | inverse () const |
Gives back the inverse of the map. | |
Classes | |
class | InverseMap |
The class represents the inverse of its owner (IdMap). More... |
IdMap | ( | const Graph & | graph | ) | [inline, explicit] |
Constructor of the map.
int operator[] | ( | const Item & | item | ) | const [inline] |
Gives back the immutable and unique id of the item.
Item operator() | ( | int | id | ) | [inline] |
Gives back the item by its id.
InverseMap inverse | ( | ) | const [inline] |
Gives back the inverse of the IdMap.