[Lemon-commits] [lemon_svn] alpar: r1664 - hugo/trunk/src/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:46:52 CET 2006


Author: alpar
Date: Mon Mar 21 17:16:52 2005
New Revision: 1664

Modified:
   hugo/trunk/src/lemon/map_utils.h

Log:
Constructor of IdMap<G,I>::InverseMap made public


Modified: hugo/trunk/src/lemon/map_utils.h
==============================================================================
--- hugo/trunk/src/lemon/map_utils.h	(original)
+++ hugo/trunk/src/lemon/map_utils.h	Mon Mar 21 17:16:52 2005
@@ -243,12 +243,14 @@
     /// The class represents the inverse of the map.
     /// \see inverse()
     class InverseMap {
-    protected:
-      InverseMap(const Graph& _graph) : graph(&_graph) {}
     public:
-      /// \brief Gives back the given item by its id.
+      /// \brief Constructor.
+      ///
+      /// Constructor for creating an id-to-item map.
+      InverseMap(const Graph& _graph) : graph(&_graph) {}
+      /// \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:



More information about the Lemon-commits mailing list