[Lemon-commits] [lemon_svn] deba: r2898 - hugo/trunk/lemon/concept

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 21:51:06 CET 2006


Author: deba
Date: Mon Aug 14 18:14:10 2006
New Revision: 2898

Modified:
   hugo/trunk/lemon/concept/graph_components.h

Log:
Omit warnings



Modified: hugo/trunk/lemon/concept/graph_components.h
==============================================================================
--- hugo/trunk/lemon/concept/graph_components.h	(original)
+++ hugo/trunk/lemon/concept/graph_components.h	Mon Aug 14 18:14:10 2006
@@ -1294,23 +1294,24 @@
       ///
       /// ReadWrite map of the nodes.
       ///
-      template <typename Value>
-      class NodeMap : public GraphMap<Graph, Node, Value> {
+      template <typename _Value>
+      class NodeMap : public GraphMap<Graph, Node, _Value> {
       private:
 	NodeMap();
       public:
-        typedef GraphMap<Graph, Node, Value> Parent;
+        typedef GraphMap<MappableGraphComponent, Node, _Value> Parent;
 
 	/// \brief Construct a new map.
 	///
 	/// Construct a new map for the graph.
 	/// \todo call the right parent class constructor
-	explicit NodeMap(const Graph& graph) : Parent(graph) {}
+	explicit NodeMap(const MappableGraphComponent& graph) 
+          : Parent(graph) {}
 
 	/// \brief Construct a new map with default value.
 	///
 	/// Construct a new map for the graph and initalise the values.
-	NodeMap(const Graph& graph, const Value& value)
+	NodeMap(const MappableGraphComponent& graph, const _Value& value)
           : Parent(graph, value) {}
 
 	/// \brief Copy constructor.
@@ -1323,7 +1324,7 @@
 	/// Assign operator.
         template <typename CMap>
         NodeMap& operator=(const CMap&) { 
-          checkConcept<ReadMap<Node, Value>, CMap>();
+          checkConcept<ReadMap<Node, _Value>, CMap>();
           return *this;
         }
 
@@ -1333,23 +1334,24 @@
       ///
       /// ReadWrite map of the edges.
       ///
-      template <typename Value>
-      class EdgeMap : public GraphMap<Graph, Edge, Value> {
+      template <typename _Value>
+      class EdgeMap : public GraphMap<Graph, Edge, _Value> {
       private:
 	EdgeMap();
       public:
-        typedef GraphMap<Graph, Edge, Value> Parent;
+        typedef GraphMap<MappableGraphComponent, Edge, _Value> Parent;
 
 	/// \brief Construct a new map.
 	///
 	/// Construct a new map for the graph.
 	/// \todo call the right parent class constructor
-	explicit EdgeMap(const Graph& graph) : Parent(graph) {}
+	explicit EdgeMap(const MappableGraphComponent& graph) 
+          : Parent(graph) {}
 
 	/// \brief Construct a new map with default value.
 	///
 	/// Construct a new map for the graph and initalise the values.
-	EdgeMap(const Graph& graph, const Value& value)
+	EdgeMap(const MappableGraphComponent& graph, const _Value& value)
           : Parent(graph, value) {}
 
 	/// \brief Copy constructor.
@@ -1362,7 +1364,7 @@
 	/// Assign operator.
         template <typename CMap>
         EdgeMap& operator=(const CMap&) { 
-          checkConcept<ReadMap<Edge, Value>, CMap>();
+          checkConcept<ReadMap<Edge, _Value>, CMap>();
           return *this;
         }
 
@@ -1431,21 +1433,22 @@
       ///
       /// ReadWrite map of the uedges.
       ///
-      template <typename Value>
-      class UEdgeMap : public GraphMap<Graph, UEdge, Value> {  
+      template <typename _Value>
+      class UEdgeMap : public GraphMap<Graph, UEdge, _Value> {  
       public:
-        typedef GraphMap<Graph, UEdge, Value> Parent;
+        typedef GraphMap<MappableUGraphComponent, UEdge, _Value> Parent;
 
 	/// \brief Construct a new map.
 	///
 	/// Construct a new map for the graph.
 	/// \todo call the right parent class constructor
-	explicit UEdgeMap(const Graph& graph) : Parent(graph) {}
+	explicit UEdgeMap(const MappableUGraphComponent& graph) 
+          : Parent(graph) {}
 
 	/// \brief Construct a new map with default value.
 	///
 	/// Construct a new map for the graph and initalise the values.
-	UEdgeMap(const Graph& graph, const Value& value)
+	UEdgeMap(const MappableUGraphComponent& graph, const _Value& value)
           : Parent(graph, value) {}
 
 	/// \brief Copy constructor.
@@ -1458,7 +1461,7 @@
 	/// Assign operator.
         template <typename CMap>
         UEdgeMap& operator=(const CMap&) { 
-          checkConcept<ReadMap<UEdge, Value>, CMap>();
+          checkConcept<ReadMap<UEdge, _Value>, CMap>();
           return *this;
         }
 



More information about the Lemon-commits mailing list