Constructor of IdMap<G,I>::InverseMap made public
authoralpar
Mon, 21 Mar 2005 16:16:52 +0000
changeset 12372414b5ab7684
parent 1236 fd24f16e0d73
child 1238 91859a23e525
Constructor of IdMap<G,I>::InverseMap made public
src/lemon/map_utils.h
     1.1 --- a/src/lemon/map_utils.h	Mon Mar 21 12:49:37 2005 +0000
     1.2 +++ b/src/lemon/map_utils.h	Mon Mar 21 16:16:52 2005 +0000
     1.3 @@ -243,12 +243,14 @@
     1.4      /// The class represents the inverse of the map.
     1.5      /// \see inverse()
     1.6      class InverseMap {
     1.7 -    protected:
     1.8 +    public:
     1.9 +      /// \brief Constructor.
    1.10 +      ///
    1.11 +      /// Constructor for creating an id-to-item map.
    1.12        InverseMap(const Graph& _graph) : graph(&_graph) {}
    1.13 -    public:
    1.14 -      /// \brief Gives back the given item by its id.
    1.15 +      /// \brief Gives back the given item from its id.
    1.16        ///
    1.17 -      /// Gives back the given item by its id.
    1.18 +      /// Gives back the given item from its id.
    1.19        /// 
    1.20        Item operator[](int id) const { return graph->fromId(id, Item());}
    1.21      private: