Changeset 1198:2236d00ca778 in lemon-main for lemon/concepts/path.h
- Timestamp:
- 11/01/18 19:49:51 (6 years ago)
- Branch:
- default
- Parents:
- 1196:959d78f3fe0e (diff), 1197:f179aa1045a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/concepts/path.h
r1130 r1198 72 72 /// \brief Template copy constructor 73 73 template <typename CPath> 74 Path(const CPath& cpath) {} 74 Path(const CPath& cpath) { 75 ::lemon::ignore_unused_variable_warning(cpath); 76 } 75 77 76 78 /// \brief Template assigment operator -
lemon/concepts/path.h
r1197 r1198 27 27 #include <lemon/core.h> 28 28 #include <lemon/concept_check.h> 29 #include <lemon/bits/stl_iterators.h> 29 30 30 31 namespace lemon { … … 118 119 }; 119 120 121 /// \brief Gets the collection of the arcs of the path. 122 /// 123 /// This function can be used for iterating on the 124 /// arcs of the path. It returns a wrapped 125 /// ArcIt, which looks like an STL container 126 /// (by having begin() and end()) which you can use in range-based 127 /// for loops, STL algorithms, etc. 128 /// For example you can write: 129 ///\code 130 /// for(auto a: p.arcs()) 131 /// doSomething(a); 132 ///\endcode 133 LemonRangeWrapper1<ArcIt, Path> arcs() const { 134 return LemonRangeWrapper1<ArcIt, Path>(*this); 135 } 136 137 120 138 template <typename _Path> 121 139 struct Constraints { … … 266 284 267 285 }; 286 287 /// \brief Gets the collection of the arcs of the path. 288 /// 289 /// This function can be used for iterating on the 290 /// arcs of the path. It returns a wrapped 291 /// ArcIt, which looks like an STL container 292 /// (by having begin() and end()) which you can use in range-based 293 /// for loops, STL algorithms, etc. 294 /// For example you can write: 295 ///\code 296 /// for(auto a: p.arcs()) 297 /// doSomething(a); 298 ///\endcode 299 LemonRangeWrapper1<ArcIt, PathDumper> arcs() const { 300 return LemonRangeWrapper1<ArcIt, PathDumper>(*this); 301 } 302 268 303 269 304 /// \brief LEMON style iterator for enumerating the arcs of a path … … 296 331 }; 297 332 333 /// \brief Gets the collection of the arcs of the path 334 /// in reverse direction. 335 /// 336 /// This function can be used for iterating on the 337 /// arcs of the path in reverse direction. It returns a wrapped 338 /// RevArcIt, which looks like an STL container 339 /// (by having begin() and end()) which you can use in range-based 340 /// for loops, STL algorithms, etc. 341 /// For example you can write: 342 ///\code 343 /// for(auto a: p.revArcs()) 344 /// doSomething(a); 345 ///\endcode 346 LemonRangeWrapper1<RevArcIt, PathDumper> revArcs() const { 347 return LemonRangeWrapper1<RevArcIt, PathDumper>(*this); 348 } 349 350 298 351 template <typename _Path> 299 352 struct Constraints {
Note: See TracChangeset
for help on using the changeset viewer.