Changes in lemon/path.h [958:a5810903ed28:877:141f9c0db4a3] in lemon-1.2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/path.h
r958 r877 65 65 Path() {} 66 66 67 /// \brief Copy constructor68 ///69 Path(const Path& cpath) {70 pathCopy(cpath, *this);71 }72 73 67 /// \brief Template copy constructor 74 68 /// … … 78 72 Path(const CPath& cpath) { 79 73 pathCopy(cpath, *this); 80 }81 82 /// \brief Copy assignment83 ///84 Path& operator=(const Path& cpath) {85 pathCopy(cpath, *this);86 return *this;87 74 } 88 75 … … 266 253 SimplePath() {} 267 254 268 /// \brief Copy constructor269 ///270 SimplePath(const SimplePath& cpath) {271 pathCopy(cpath, *this);272 }273 274 255 /// \brief Template copy constructor 275 256 /// … … 279 260 SimplePath(const CPath& cpath) { 280 261 pathCopy(cpath, *this); 281 }282 283 /// \brief Copy assignment284 ///285 SimplePath& operator=(const SimplePath& cpath) {286 pathCopy(cpath, *this);287 return *this;288 262 } 289 263 … … 458 432 ListPath() : first(0), last(0) {} 459 433 460 /// \brief Copy constructor461 ///462 ListPath(const ListPath& cpath) : first(0), last(0) {463 pathCopy(cpath, *this);464 }465 466 434 /// \brief Template copy constructor 467 435 /// … … 478 446 ~ListPath() { 479 447 clear(); 480 }481 482 /// \brief Copy assignment483 ///484 ListPath& operator=(const ListPath& cpath) {485 pathCopy(cpath, *this);486 return *this;487 448 } 488 449 … … 798 759 StaticPath() : len(0), arcs(0) {} 799 760 800 /// \brief Copy constructor801 ///802 StaticPath(const StaticPath& cpath) : arcs(0) {803 pathCopy(cpath, *this);804 }805 806 761 /// \brief Template copy constructor 807 762 /// … … 817 772 ~StaticPath() { 818 773 if (arcs) delete[] arcs; 819 }820 821 /// \brief Copy assignment822 ///823 StaticPath& operator=(const StaticPath& cpath) {824 pathCopy(cpath, *this);825 return *this;826 774 } 827 775
Note: See TracChangeset
for help on using the changeset viewer.