Changeset 2357:5365600a7a5c in lemon-0.x for lemon/path.h
- 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/path.h
r2336 r2357 218 218 int len = path.length(); 219 219 head.reserve(len); 220 for (typename CPath::Rev It it(path); it != INVALID; ++it) {220 for (typename CPath::RevEdgeIt it(path); it != INVALID; ++it) { 221 221 head.push_back(it); 222 222 } … … 376 376 data.resize(len); 377 377 int index = len; 378 for (typename CPath::Rev It it(path); it != INVALID; ++it) {378 for (typename CPath::RevEdgeIt it(path); it != INVALID; ++it) { 379 379 --index; 380 380 data[index] = it;; … … 721 721 template <typename CPath> 722 722 void buildRev(const CPath& path) { 723 for (typename CPath::Rev It it(path); it != INVALID; ++it) {723 for (typename CPath::RevEdgeIt it(path); it != INVALID; ++it) { 724 724 addFront(it); 725 725 } … … 882 882 edges = new Edge[len]; 883 883 int index = len; 884 for (typename CPath::Rev It it(path); it != INVALID; ++it) {884 for (typename CPath::RevEdgeIt it(path); it != INVALID; ++it) { 885 885 --index; 886 886 edges[index] = it;
Note: See TracChangeset
for help on using the changeset viewer.