Changes in / [265:983d8c23aff8:264:b6b9e7576af7] in lemon-main
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/array_map.h
r263 r209 104 104 } 105 105 106 private:107 106 /// \brief Constructor to copy a map of the same map type. 108 107 /// … … 152 151 } 153 152 154 public:155 153 /// \brief The destructor of the map. 156 154 /// -
lemon/bits/graph_extender.h
r263 r220 228 228 : Parent(digraph, value) {} 229 229 230 private:231 230 NodeMap& operator=(const NodeMap& cmap) { 232 231 return operator=<NodeMap>(cmap); … … 253 252 : Parent(digraph, value) {} 254 253 255 private:256 254 ArcMap& operator=(const ArcMap& cmap) { 257 255 return operator=<ArcMap>(cmap); … … 611 609 : Parent(graph, value) {} 612 610 613 private:614 611 NodeMap& operator=(const NodeMap& cmap) { 615 612 return operator=<NodeMap>(cmap); … … 636 633 : Parent(graph, value) {} 637 634 638 private:639 635 ArcMap& operator=(const ArcMap& cmap) { 640 636 return operator=<ArcMap>(cmap); … … 662 658 : Parent(graph, value) {} 663 659 664 private:665 660 EdgeMap& operator=(const EdgeMap& cmap) { 666 661 return operator=<EdgeMap>(cmap); -
lemon/bits/map_extender.h
r263 r209 63 63 : Parent(graph, value) {} 64 64 65 private:66 65 MapExtender& operator=(const MapExtender& cmap) { 67 66 return operator=<MapExtender>(cmap); … … 74 73 } 75 74 76 public:77 75 class MapIt : public Item { 78 76 public: … … 203 201 : Parent(_graph, _value), graph(_graph) {} 204 202 205 private:206 203 SubMapExtender& operator=(const SubMapExtender& cmap) { 207 204 return operator=<MapExtender>(cmap); … … 218 215 } 219 216 220 public:221 217 class MapIt : public Item { 222 218 public: -
lemon/bits/vector_map.h
r263 r220 101 101 } 102 102 103 private:104 103 /// \brief Copy constructor 105 104 /// -
lemon/concepts/digraph.h
r263 r220 435 435 NodeMap(const Digraph&, T) { } 436 436 437 private:438 437 ///Copy constructor 439 438 NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { } … … 458 457 ///\e 459 458 ArcMap(const Digraph&, T) { } 460 private:461 459 ///Copy constructor 462 460 ArcMap(const ArcMap& em) : ReadWriteMap<Arc,T>(em) { } -
lemon/concepts/graph.h
r263 r220 513 513 NodeMap(const Graph&, T) { } 514 514 515 private:516 515 ///Copy constructor 517 516 NodeMap(const NodeMap& nm) : ReadWriteMap< Node, T >(nm) { } … … 537 536 ///\e 538 537 ArcMap(const Graph&, T) { } 539 private:540 538 ///Copy constructor 541 539 ArcMap(const ArcMap& em) : ReadWriteMap<Arc,T>(em) { } … … 561 559 ///\e 562 560 EdgeMap(const Graph&, T) { } 563 private:564 561 ///Copy constructor 565 562 EdgeMap(const EdgeMap& em) : ReadWriteMap<Edge,T>(em) {} -
lemon/concepts/graph_components.h
r263 r220 1006 1006 /// Construct a new map for the graph and initalise the values. 1007 1007 GraphMap(const Graph&, const Value&) {} 1008 1009 private:1010 1008 /// \brief Copy constructor. 1011 1009 /// … … 1024 1022 } 1025 1023 1026 public:1027 1024 template<typename _Map> 1028 1025 struct Constraints { … … 1034 1031 _Map a2(g,t); 1035 1032 // Copy constructor. 1036 // _Map b(c); 1037 1038 // ReadMap<Key, Value> cmap; 1039 // b = cmap; 1040 1041 ignore_unused_variable_warning(a); 1033 _Map b(c); 1034 1035 ReadMap<Key, Value> cmap; 1036 b = cmap; 1037 1042 1038 ignore_unused_variable_warning(a2); 1043 //ignore_unused_variable_warning(b);1039 ignore_unused_variable_warning(b); 1044 1040 } 1045 1041 … … 1087 1083 : Parent(digraph, value) {} 1088 1084 1089 private:1090 1085 /// \brief Copy constructor. 1091 1086 /// … … 1125 1120 : Parent(digraph, value) {} 1126 1121 1127 private:1128 1122 /// \brief Copy constructor. 1129 1123 /// … … 1222 1216 : Parent(graph, value) {} 1223 1217 1224 private:1225 1218 /// \brief Copy constructor. 1226 1219 /// -
test/graph_test.h
r263 r228 213 213 check(s == 0, "Wrong sum."); 214 214 215 //map = constMap<Node>(12);216 //for (NodeIt it(G); it != INVALID; ++it) {217 //check(map[it] == 12, "Wrong operator[].");218 //}215 map = constMap<Node>(12); 216 for (NodeIt it(G); it != INVALID; ++it) { 217 check(map[it] == 12, "Wrong operator[]."); 218 } 219 219 } 220 220 … … 243 243 check(s == 0, "Wrong sum."); 244 244 245 //map = constMap<Arc>(12);246 //for (ArcIt it(G); it != INVALID; ++it) {247 //check(map[it] == 12, "Wrong operator[].");248 //}245 map = constMap<Arc>(12); 246 for (ArcIt it(G); it != INVALID; ++it) { 247 check(map[it] == 12, "Wrong operator[]."); 248 } 249 249 } 250 250 … … 273 273 check(s == 0, "Wrong sum."); 274 274 275 //map = constMap<Edge>(12);276 //for (EdgeIt it(G); it != INVALID; ++it) {277 //check(map[it] == 12, "Wrong operator[].");278 //}275 map = constMap<Edge>(12); 276 for (EdgeIt it(G); it != INVALID; ++it) { 277 check(map[it] == 12, "Wrong operator[]."); 278 } 279 279 } 280 280
Note: See TracChangeset
for help on using the changeset viewer.