# HG changeset patch # User Alpar Juttner # Date 1221660278 -3600 # Node ID 983d8c23aff82750de15e5d76dd699b8e5b19593 # Parent b6b9e7576af78d97d2f8bacb49d2cb07ce59a7c5# Parent be8a861d3bb7cac5c1ee56cbd8a9ceecef514292 Merge diff -r b6b9e7576af7 -r 983d8c23aff8 lemon/bits/array_map.h --- a/lemon/bits/array_map.h Wed Sep 17 15:04:21 2008 +0100 +++ b/lemon/bits/array_map.h Wed Sep 17 15:04:38 2008 +0100 @@ -103,6 +103,7 @@ } } + private: /// \brief Constructor to copy a map of the same map type. /// /// Constructor to copy a map of the same map type. @@ -150,6 +151,7 @@ return *this; } + public: /// \brief The destructor of the map. /// /// The destructor of the map. diff -r b6b9e7576af7 -r 983d8c23aff8 lemon/bits/graph_extender.h --- a/lemon/bits/graph_extender.h Wed Sep 17 15:04:21 2008 +0100 +++ b/lemon/bits/graph_extender.h Wed Sep 17 15:04:38 2008 +0100 @@ -227,6 +227,7 @@ NodeMap(const Digraph& digraph, const _Value& value) : Parent(digraph, value) {} + private: NodeMap& operator=(const NodeMap& cmap) { return operator=(cmap); } @@ -251,6 +252,7 @@ ArcMap(const Digraph& digraph, const _Value& value) : Parent(digraph, value) {} + private: ArcMap& operator=(const ArcMap& cmap) { return operator=(cmap); } @@ -608,6 +610,7 @@ NodeMap(const Graph& graph, const _Value& value) : Parent(graph, value) {} + private: NodeMap& operator=(const NodeMap& cmap) { return operator=(cmap); } @@ -632,6 +635,7 @@ ArcMap(const Graph& graph, const _Value& value) : Parent(graph, value) {} + private: ArcMap& operator=(const ArcMap& cmap) { return operator=(cmap); } @@ -657,6 +661,7 @@ EdgeMap(const Graph& graph, const _Value& value) : Parent(graph, value) {} + private: EdgeMap& operator=(const EdgeMap& cmap) { return operator=(cmap); } diff -r b6b9e7576af7 -r 983d8c23aff8 lemon/bits/map_extender.h --- a/lemon/bits/map_extender.h Wed Sep 17 15:04:21 2008 +0100 +++ b/lemon/bits/map_extender.h Wed Sep 17 15:04:38 2008 +0100 @@ -62,6 +62,7 @@ MapExtender(const Graph& graph, const Value& value) : Parent(graph, value) {} + private: MapExtender& operator=(const MapExtender& cmap) { return operator=(cmap); } @@ -72,6 +73,7 @@ return *this; } + public: class MapIt : public Item { public: @@ -200,6 +202,7 @@ SubMapExtender(const Graph& _graph, const Value& _value) : Parent(_graph, _value), graph(_graph) {} + private: SubMapExtender& operator=(const SubMapExtender& cmap) { return operator=(cmap); } @@ -214,6 +217,7 @@ return *this; } + public: class MapIt : public Item { public: diff -r b6b9e7576af7 -r 983d8c23aff8 lemon/bits/vector_map.h --- a/lemon/bits/vector_map.h Wed Sep 17 15:04:21 2008 +0100 +++ b/lemon/bits/vector_map.h Wed Sep 17 15:04:38 2008 +0100 @@ -100,6 +100,7 @@ container.resize(Parent::notifier()->maxId() + 1, value); } + private: /// \brief Copy constructor /// /// Copy constructor. diff -r b6b9e7576af7 -r 983d8c23aff8 lemon/concepts/digraph.h --- a/lemon/concepts/digraph.h Wed Sep 17 15:04:21 2008 +0100 +++ b/lemon/concepts/digraph.h Wed Sep 17 15:04:38 2008 +0100 @@ -434,6 +434,7 @@ ///\e NodeMap(const Digraph&, T) { } + private: ///Copy constructor NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { } ///Assignment operator @@ -456,6 +457,7 @@ ArcMap(const Digraph&) { } ///\e ArcMap(const Digraph&, T) { } + private: ///Copy constructor ArcMap(const ArcMap& em) : ReadWriteMap(em) { } ///Assignment operator diff -r b6b9e7576af7 -r 983d8c23aff8 lemon/concepts/graph.h --- a/lemon/concepts/graph.h Wed Sep 17 15:04:21 2008 +0100 +++ b/lemon/concepts/graph.h Wed Sep 17 15:04:38 2008 +0100 @@ -512,6 +512,7 @@ ///\e NodeMap(const Graph&, T) { } + private: ///Copy constructor NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { } ///Assignment operator @@ -535,6 +536,7 @@ ArcMap(const Graph&) { } ///\e ArcMap(const Graph&, T) { } + private: ///Copy constructor ArcMap(const ArcMap& em) : ReadWriteMap(em) { } ///Assignment operator @@ -558,6 +560,7 @@ EdgeMap(const Graph&) { } ///\e EdgeMap(const Graph&, T) { } + private: ///Copy constructor EdgeMap(const EdgeMap& em) : ReadWriteMap(em) {} ///Assignment operator diff -r b6b9e7576af7 -r 983d8c23aff8 lemon/concepts/graph_components.h --- a/lemon/concepts/graph_components.h Wed Sep 17 15:04:21 2008 +0100 +++ b/lemon/concepts/graph_components.h Wed Sep 17 15:04:38 2008 +0100 @@ -1005,6 +1005,8 @@ /// /// Construct a new map for the graph and initalise the values. GraphMap(const Graph&, const Value&) {} + + private: /// \brief Copy constructor. /// /// Copy Constructor. @@ -1021,6 +1023,7 @@ return *this; } + public: template struct Constraints { void constraints() { @@ -1030,13 +1033,14 @@ // Constructor with a graph and a default value parameter _Map a2(g,t); // Copy constructor. - _Map b(c); + // _Map b(c); - ReadMap cmap; - b = cmap; + // ReadMap cmap; + // b = cmap; + ignore_unused_variable_warning(a); ignore_unused_variable_warning(a2); - ignore_unused_variable_warning(b); + // ignore_unused_variable_warning(b); } const _Map &c; @@ -1082,6 +1086,7 @@ NodeMap(const MappableDigraphComponent& digraph, const _Value& value) : Parent(digraph, value) {} + private: /// \brief Copy constructor. /// /// Copy Constructor. @@ -1119,6 +1124,7 @@ ArcMap(const MappableDigraphComponent& digraph, const _Value& value) : Parent(digraph, value) {} + private: /// \brief Copy constructor. /// /// Copy Constructor. @@ -1215,6 +1221,7 @@ EdgeMap(const MappableGraphComponent& graph, const _Value& value) : Parent(graph, value) {} + private: /// \brief Copy constructor. /// /// Copy Constructor. diff -r b6b9e7576af7 -r 983d8c23aff8 test/graph_test.h --- a/test/graph_test.h Wed Sep 17 15:04:21 2008 +0100 +++ b/test/graph_test.h Wed Sep 17 15:04:38 2008 +0100 @@ -212,10 +212,10 @@ } check(s == 0, "Wrong sum."); - map = constMap(12); - for (NodeIt it(G); it != INVALID; ++it) { - check(map[it] == 12, "Wrong operator[]."); - } + // map = constMap(12); + // for (NodeIt it(G); it != INVALID; ++it) { + // check(map[it] == 12, "Wrong operator[]."); + // } } template @@ -242,10 +242,10 @@ } check(s == 0, "Wrong sum."); - map = constMap(12); - for (ArcIt it(G); it != INVALID; ++it) { - check(map[it] == 12, "Wrong operator[]."); - } + // map = constMap(12); + // for (ArcIt it(G); it != INVALID; ++it) { + // check(map[it] == 12, "Wrong operator[]."); + // } } template @@ -272,10 +272,10 @@ } check(s == 0, "Wrong sum."); - map = constMap(12); - for (EdgeIt it(G); it != INVALID; ++it) { - check(map[it] == 12, "Wrong operator[]."); - } + // map = constMap(12); + // for (EdgeIt it(G); it != INVALID; ++it) { + // check(map[it] == 12, "Wrong operator[]."); + // } }