# HG changeset patch # User alpar # Date 1111421812 0 # Node ID 2414b5ab7684f23797bdcd7d8b4c21bee9a8d3dc # Parent fd24f16e0d737ae55e74010f2eb5b01a567e0434 Constructor of IdMap::InverseMap made public diff -r fd24f16e0d73 -r 2414b5ab7684 src/lemon/map_utils.h --- a/src/lemon/map_utils.h Mon Mar 21 12:49:37 2005 +0000 +++ b/src/lemon/map_utils.h Mon Mar 21 16:16:52 2005 +0000 @@ -243,12 +243,14 @@ /// The class represents the inverse of the map. /// \see inverse() class InverseMap { - protected: + public: + /// \brief Constructor. + /// + /// Constructor for creating an id-to-item map. InverseMap(const Graph& _graph) : graph(&_graph) {} - public: - /// \brief Gives back the given item by its id. + /// \brief Gives back the given item from its id. /// - /// Gives back the given item by its id. + /// Gives back the given item from its id. /// Item operator[](int id) const { return graph->fromId(id, Item());} private: