# HG changeset patch # User deba # Date 1155572050 0 # Node ID b2c38f4f72ffc59065fad80011d77c4a72053d73 # Parent d5544c9409e4c8d5ac87d9b5c1b0afdc9f7678c5 Omit warnings diff -r d5544c9409e4 -r b2c38f4f72ff lemon/concept/graph_components.h --- a/lemon/concept/graph_components.h Mon Aug 14 16:08:28 2006 +0000 +++ b/lemon/concept/graph_components.h Mon Aug 14 16:14:10 2006 +0000 @@ -1294,23 +1294,24 @@ /// /// ReadWrite map of the nodes. /// - template - class NodeMap : public GraphMap { + template + class NodeMap : public GraphMap { private: NodeMap(); public: - typedef GraphMap Parent; + typedef GraphMap 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 NodeMap& operator=(const CMap&) { - checkConcept, CMap>(); + checkConcept, CMap>(); return *this; } @@ -1333,23 +1334,24 @@ /// /// ReadWrite map of the edges. /// - template - class EdgeMap : public GraphMap { + template + class EdgeMap : public GraphMap { private: EdgeMap(); public: - typedef GraphMap Parent; + typedef GraphMap 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 EdgeMap& operator=(const CMap&) { - checkConcept, CMap>(); + checkConcept, CMap>(); return *this; } @@ -1431,21 +1433,22 @@ /// /// ReadWrite map of the uedges. /// - template - class UEdgeMap : public GraphMap { + template + class UEdgeMap : public GraphMap { public: - typedef GraphMap Parent; + typedef GraphMap 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 UEdgeMap& operator=(const CMap&) { - checkConcept, CMap>(); + checkConcept, CMap>(); return *this; }