Changeset 1210:da87dbdf3daf in lemon-main
- Timestamp:
- 07/28/20 21:23:36 (4 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/concepts/bpgraph.h
r1130 r1210 96 96 /// 97 97 Node(const Node&) { } 98 /// Assignment operator 99 100 /// Assignment operator. 101 /// 102 const Node &operator=(const Node&) { return *this; } 98 103 99 104 /// %Invalid constructor \& conversion. … … 144 149 /// 145 150 RedNode(const RedNode&) : Node() { } 151 /// Assignment operator 152 153 /// Assignment operator. 154 /// 155 const RedNode &operator=(const RedNode&) { return *this; } 146 156 147 157 /// %Invalid constructor \& conversion. … … 171 181 /// 172 182 BlueNode(const BlueNode&) : Node() { } 183 /// Assignment operator 184 185 /// Assignment operator. 186 /// 187 const BlueNode &operator=(const BlueNode&) { return *this; } 188 173 189 174 190 /// %Invalid constructor \& conversion. … … 201 217 /// 202 218 RedNodeIt(const RedNodeIt& n) : RedNode(n) { } 219 /// Assignment operator 220 221 /// Assignment operator. 222 /// 223 const RedNodeIt &operator=(const RedNodeIt&) { return *this; } 203 224 /// %Invalid constructor \& conversion. 204 225 … … 260 281 /// 261 282 BlueNodeIt(const BlueNodeIt& n) : BlueNode(n) { } 283 /// Assignment operator 284 285 /// Assignment operator. 286 /// 287 const BlueNodeIt &operator=(const BlueNodeIt&) { return *this; } 262 288 /// %Invalid constructor \& conversion. 263 289 … … 319 345 /// 320 346 NodeIt(const NodeIt& n) : Node(n) { } 347 /// Assignment operator 348 349 /// Assignment operator. 350 /// 351 const NodeIt &operator=(const NodeIt&) { return *this; } 321 352 /// %Invalid constructor \& conversion. 322 353 … … 375 406 /// 376 407 Edge(const Edge&) { } 408 /// Assignment operator 409 410 /// Assignment operator. 411 /// 412 const Edge &operator=(const Edge&) { return *this; } 377 413 /// %Invalid constructor \& conversion. 378 414 … … 423 459 /// 424 460 EdgeIt(const EdgeIt& e) : Edge(e) { } 461 /// Assignment operator 462 463 /// Assignment operator. 464 /// 465 const EdgeIt &operator=(const EdgeIt&) { return *this; } 425 466 /// %Invalid constructor \& conversion. 426 467 … … 488 529 /// 489 530 IncEdgeIt(const IncEdgeIt& e) : Edge(e) { } 531 /// Assignment operator 532 533 /// Assignment operator. 534 /// 535 const IncEdgeIt &operator=(const IncEdgeIt&) { return *this; } 490 536 /// %Invalid constructor \& conversion. 491 537 … … 546 592 /// 547 593 Arc(const Arc&) { } 594 /// Assignment operator 595 596 /// Assignment operator. 597 /// 598 const Arc &operator=(const Arc&) { return *this; } 548 599 /// %Invalid constructor \& conversion. 549 600 … … 600 651 /// 601 652 ArcIt(const ArcIt& e) : Arc(e) { } 653 /// Assignment operator 654 655 /// Assignment operator. 656 /// 657 const ArcIt &operator=(const ArcIt&) { return *this; } 602 658 /// %Invalid constructor \& conversion. 603 659 … … 665 721 /// 666 722 OutArcIt(const OutArcIt& e) : Arc(e) { } 723 /// Assignment operator 724 725 /// Assignment operator. 726 /// 727 const OutArcIt &operator=(const OutArcIt&) { return *this; } 667 728 /// %Invalid constructor \& conversion. 668 729 … … 731 792 /// 732 793 InArcIt(const InArcIt& e) : Arc(e) { } 794 /// Assignment operator 795 796 /// Assignment operator. 797 /// 798 const InArcIt &operator=(const InArcIt&) { return *this; } 733 799 /// %Invalid constructor \& conversion. 734 800 -
lemon/concepts/digraph.h
r1130 r1210 78 78 Node(const Node&) { } 79 79 80 /// Assignment operator 81 82 /// Assignment operator. 83 /// 84 const Node &operator=(const Node&) { return *this; } 85 80 86 /// %Invalid constructor \& conversion. 81 87 … … 127 133 /// 128 134 NodeIt(const NodeIt& n) : Node(n) { } 135 /// Assignment operator 136 137 /// Assignment operator. 138 /// 139 const NodeIt &operator=(const NodeIt&) { return *this; } 140 129 141 /// %Invalid constructor \& conversion. 130 142 … … 186 198 /// 187 199 Arc(const Arc&) { } 200 /// Assignment operator 201 202 /// Assignment operator. 203 /// 204 const Arc &operator=(const Arc&) { return *this; } 205 188 206 /// %Invalid constructor \& conversion. 189 207 … … 236 254 /// 237 255 OutArcIt(const OutArcIt& e) : Arc(e) { } 256 /// Assignment operator 257 258 /// Assignment operator. 259 /// 260 const OutArcIt &operator=(const OutArcIt&) { return *this; } 238 261 /// %Invalid constructor \& conversion. 239 262 … … 302 325 /// 303 326 InArcIt(const InArcIt& e) : Arc(e) { } 327 /// Assignment operator 328 329 /// Assignment operator. 330 /// 331 const InArcIt &operator=(const InArcIt&) { return *this; } 332 304 333 /// %Invalid constructor \& conversion. 305 334 … … 366 395 /// 367 396 ArcIt(const ArcIt& e) : Arc(e) { } 397 /// Assignment operator 398 399 /// Assignment operator. 400 /// 401 const ArcIt &operator=(const ArcIt&) { return *this; } 402 368 403 /// %Invalid constructor \& conversion. 369 404 … … 522 557 NodeMap(const NodeMap& nm) : 523 558 ReferenceMap<Node, T, T&, const T&>(nm) { } 559 public: 524 560 ///Assignment operator 561 NodeMap& operator=(const NodeMap&) { 562 return *this; 563 } 564 ///Template Assignment operator 525 565 template <typename CMap> 526 566 NodeMap& operator=(const CMap&) { … … 548 588 ReferenceMap<Arc, T, T&, const T&>(em) { } 549 589 ///Assignment operator 590 ArcMap& operator=(const ArcMap&) { 591 return *this; 592 } 593 ///Template Assignment operator 550 594 template <typename CMap> 551 595 ArcMap& operator=(const CMap&) { -
lemon/concepts/graph.h
r1130 r1210 109 109 /// 110 110 Node(const Node&) { } 111 /// Assignment operator 112 113 /// Assignment operator. 114 /// 115 const Node &operator=(const Node&) { return *this; } 111 116 112 117 /// %Invalid constructor \& conversion. … … 160 165 /// 161 166 NodeIt(const NodeIt& n) : Node(n) { } 167 /// Assignment operator 168 169 /// Assignment operator. 170 /// 171 const NodeIt &operator=(const NodeIt&) { return *this; } 172 162 173 /// %Invalid constructor \& conversion. 163 174 … … 219 230 /// 220 231 Edge(const Edge&) { } 232 /// Assignment operator 233 234 /// Assignment operator. 235 /// 236 const Edge &operator=(const Edge&) { return *this; } 237 221 238 /// %Invalid constructor \& conversion. 222 239 … … 267 284 /// 268 285 EdgeIt(const EdgeIt& e) : Edge(e) { } 286 /// Assignment operator 287 288 /// Assignment operator. 289 /// 290 const EdgeIt &operator=(const EdgeIt&) { return *this; } 291 269 292 /// %Invalid constructor \& conversion. 270 293 … … 336 359 /// 337 360 IncEdgeIt(const IncEdgeIt& e) : Edge(e) { } 361 /// Assignment operator 362 363 /// Assignment operator. 364 /// 365 const IncEdgeIt &operator=(const IncEdgeIt&) { return *this; } 366 338 367 /// %Invalid constructor \& conversion. 339 368 … … 397 426 /// 398 427 Arc(const Arc&) { } 428 /// Assignment operator 429 430 /// Assignment operator. 431 /// 432 const Arc &operator=(const Arc&) { return *this; } 433 399 434 /// %Invalid constructor \& conversion. 400 435 … … 451 486 /// 452 487 ArcIt(const ArcIt& e) : Arc(e) { } 488 /// Assignment operator 489 490 /// Assignment operator. 491 /// 492 const ArcIt &operator=(const ArcIt&) { return *this; } 493 453 494 /// %Invalid constructor \& conversion. 454 495 … … 519 560 /// 520 561 OutArcIt(const OutArcIt& e) : Arc(e) { } 562 /// Assignment operator 563 564 /// Assignment operator. 565 /// 566 const OutArcIt &operator=(const OutArcIt&) { return *this; } 567 521 568 /// %Invalid constructor \& conversion. 522 569 … … 588 635 /// 589 636 InArcIt(const InArcIt& e) : Arc(e) { } 637 /// Assignment operator 638 639 /// Assignment operator. 640 /// 641 const InArcIt &operator=(const InArcIt&) { return *this; } 642 590 643 /// %Invalid constructor \& conversion. 591 644 … … 652 705 ReferenceMap<Node, T, T&, const T&>(nm) { } 653 706 ///Assignment operator 707 NodeMap& operator=(const NodeMap&) { 708 return *this; 709 } 710 ///Template Assignment operator 654 711 template <typename CMap> 655 712 NodeMap& operator=(const CMap&) { … … 678 735 ReferenceMap<Arc, T, T&, const T&>(em) { } 679 736 ///Assignment operator 737 ArcMap& operator=(const ArcMap&) { 738 return *this; 739 } 740 ///Template Assignment operator 680 741 template <typename CMap> 681 742 ArcMap& operator=(const CMap&) { … … 704 765 ReferenceMap<Edge, T, T&, const T&>(em) {} 705 766 ///Assignment operator 767 EdgeMap& operator=(const EdgeMap&) { 768 return *this; 769 } 770 ///Template Assignment operator 706 771 template <typename CMap> 707 772 EdgeMap& operator=(const CMap&) { -
lemon/concepts/graph_components.h
r1197 r1210 220 220 Edge(const Edge &) : Parent() {} 221 221 222 /// Assignment operator 223 224 /// Assignment operator. 225 /// 226 const Edge &operator=(const Edge&) { return *this; } 227 222 228 /// \brief Constructor for conversion from \c INVALID. 223 229 /// … … 337 343 /// Copy constructor. 338 344 RedNode(const RedNode &) : Parent() {} 345 /// Assignment operator 346 347 /// Assignment operator. 348 /// 349 const RedNode &operator=(const RedNode&) { return *this; } 339 350 340 351 /// \brief Constructor for conversion from \c INVALID. … … 366 377 /// Copy constructor. 367 378 BlueNode(const BlueNode &) : Parent() {} 379 /// Assignment operator 380 381 /// Assignment operator. 382 /// 383 const BlueNode &operator=(const BlueNode&) { return *this; } 384 368 385 369 386 /// \brief Constructor for conversion from \c INVALID. -
lemon/dim2.h
r1112 r1210 55 55 56 56 ///Default constructor 57 Point() {}57 Point() : x(), y() {} 58 58 59 59 ///Construct an instance from coordinates -
lemon/list_graph.h
r1149 r1210 1658 1658 RedNode(const RedNode& node) : Node(node) {} 1659 1659 RedNode(Invalid) : Node(INVALID){} 1660 const RedNode& operator=(const RedNode& node) { Node::operator=(node); return *this;} 1660 1661 }; 1661 1662 … … 1670 1671 BlueNode(const BlueNode& node) : Node(node) {} 1671 1672 BlueNode(Invalid) : Node(INVALID){} 1673 const BlueNode& operator=(const BlueNode& node) { Node::operator=(node); return *this;} 1672 1674 }; 1673 1675 -
lemon/maps.h
r1130 r1210 295 295 private: 296 296 297 RangeMap& operator=(const RangeMap&); 298 299 public: 297 // RangeMap& operator=(const RangeMap&); 298 299 public: 300 301 // ///\e 302 // RangeMap(const RangeMap&); 300 303 301 304 ///\e -
lemon/smart_graph.h
r1130 r1210 864 864 RedNode() {} 865 865 RedNode(const RedNode& node) : Node(node) {} 866 RedNode(Invalid) : Node(INVALID){} 866 RedNode(Invalid) : Node(INVALID) {} 867 const RedNode& operator=(const RedNode& node) { Node::operator=(node); return *this;} 867 868 }; 868 869 … … 877 878 BlueNode(const BlueNode& node) : Node(node) {} 878 879 BlueNode(Invalid) : Node(INVALID){} 880 const BlueNode& operator=(const BlueNode& node) { Node::operator=(node); return *this;} 879 881 }; 880 882 -
test/maps_test.cc
r1131 r1210 62 62 typedef B result_type; 63 63 64 F() {}; 65 F(const F&) {}; 66 64 67 B operator()(const A&) const { return B(); } 65 68 private:
Note: See TracChangeset
for help on using the changeset viewer.