COIN-OR::LEMON - Graph Library

Changeset 2357:5365600a7a5c in lemon-0.x for lemon/bits/path_dump.h


Ignore:
Timestamp:
02/11/07 17:34:51 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3160
Message:

Some bug fix
RevIt? => RevEdgeIt? renaming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/path_dump.h

    r2335 r2357  
     1
    12/* -*- C++ -*-
    23 *
     
    5051    }
    5152
    52     class RevIt {
     53    class RevEdgeIt {
    5354    public:
    54       RevIt() {}
    55       RevIt(Invalid) : path(0), current(INVALID) {}
    56       RevIt(const PredMapPath& _path)
     55      RevEdgeIt() {}
     56      RevEdgeIt(Invalid) : path(0), current(INVALID) {}
     57      RevEdgeIt(const PredMapPath& _path)
    5758        : path(&_path), current(_path.target) {}
    5859
     
    6162      }
    6263
    63       RevIt& operator++() {
     64      RevEdgeIt& operator++() {
    6465        current = path->graph.source(path->predMap[current]);
    6566        if (path->predMap[current] == INVALID) current = INVALID;
     
    6768      }
    6869
    69       bool operator==(const RevIt& e) const {
     70      bool operator==(const RevEdgeIt& e) const {
    7071        return current == e.current;
    7172      }
    7273
    73       bool operator!=(const RevIt& e) const {
     74      bool operator!=(const RevEdgeIt& e) const {
    7475        return current != e.current;
    7576      }
    7677
    77       bool operator<(const RevIt& e) const {
     78      bool operator<(const RevEdgeIt& e) const {
    7879        return current < e.current;
    7980      }
     
    122123    }
    123124
    124     class RevIt {
     125    class RevEdgeIt {
    125126    public:
    126       RevIt() {}
    127       RevIt(Invalid) : path(0), current(INVALID) {}
    128       RevIt(const PredMatrixMapPath& _path)
     127      RevEdgeIt() {}
     128      RevEdgeIt(Invalid) : path(0), current(INVALID) {}
     129      RevEdgeIt(const PredMatrixMapPath& _path)
    129130        : path(&_path), current(_path.target) {}
    130131
     
    133134      }
    134135
    135       RevIt& operator++() {
     136      RevEdgeIt& operator++() {
    136137        current =
    137138          path->graph.source(path->predMatrixMap(path->source, current));
     
    141142      }
    142143
    143       bool operator==(const RevIt& e) const {
     144      bool operator==(const RevEdgeIt& e) const {
    144145        return current == e.current;
    145146      }
    146147
    147       bool operator!=(const RevIt& e) const {
     148      bool operator!=(const RevEdgeIt& e) const {
    148149        return current != e.current;
    149150      }
    150151
    151       bool operator<(const RevIt& e) const {
     152      bool operator<(const RevEdgeIt& e) const {
    152153        return current < e.current;
    153154      }
Note: See TracChangeset for help on using the changeset viewer.