Changeset 2357:5365600a7a5c in lemon-0.x for lemon/concepts
- Timestamp:
- 02/11/07 17:34:51 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3160
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/concepts/path.h
r2335 r2357 172 172 int e = p.empty(); 173 173 174 typename _Path::Rev It id, ii(INVALID), i(p);174 typename _Path::RevEdgeIt id, ii(INVALID), i(p); 175 175 176 176 ++i; … … 233 233 /// 234 234 /// If the RevPathTag is defined and true then reverse dumping 235 /// is provided in the path proxy. In this case instead of the236 /// EdgeIt the Rev It iterator should be implemented in the237 /// proxy.235 /// is provided in the path dumper. In this case instead of the 236 /// EdgeIt the RevEdgeIt iterator should be implemented in the 237 /// dumper. 238 238 typedef False RevPathTag; 239 239 … … 269 269 /// This class is used to iterate on the edges of the paths in 270 270 /// reverse direction. 271 class Rev It {271 class RevEdgeIt { 272 272 public: 273 273 /// Default constructor 274 Rev It() {}274 RevEdgeIt() {} 275 275 /// Invalid constructor 276 Rev It(Invalid) {}276 RevEdgeIt(Invalid) {} 277 277 /// Constructor for first edge 278 Rev It(const PathDumper &) {}278 RevEdgeIt(const PathDumper &) {} 279 279 280 280 /// Conversion to Edge … … 282 282 283 283 /// Next edge 284 Rev It& operator++() {return *this;}285 286 /// Comparison operator 287 bool operator==(const Rev It&) const {return true;}288 /// Comparison operator 289 bool operator!=(const Rev It&) const {return true;}284 RevEdgeIt& operator++() {return *this;} 285 286 /// Comparison operator 287 bool operator==(const RevEdgeIt&) const {return true;} 288 /// Comparison operator 289 bool operator!=(const RevEdgeIt&) const {return true;} 290 290 /// Comparison operator 291 bool operator<(const Rev It&) const {return false;}291 bool operator<(const RevEdgeIt&) const {return false;} 292 292 293 293 };
Note: See TracChangeset
for help on using the changeset viewer.