More simple interface for PathDumper
authordeba
Tue, 28 Aug 2007 14:13:40 +0000
changeset 246816615642ac7b
parent 2467 2025a571895e
child 2469 d6f12a9b5cbf
More simple interface for PathDumper
lemon/concepts/path.h
     1.1 --- a/lemon/concepts/path.h	Tue Aug 28 14:00:42 2007 +0000
     1.2 +++ b/lemon/concepts/path.h	Tue Aug 28 14:13:40 2007 +0000
     1.3 @@ -144,19 +144,17 @@
     1.4            int l = p.length();
     1.5            int e = p.empty();
     1.6  
     1.7 -          typename _Path::EdgeIt id, ii(INVALID), i(p);
     1.8 +          typename _Path::EdgeIt id, i(p);
     1.9  
    1.10            ++i;
    1.11            typename _Graph::Edge ed = i;
    1.12  
    1.13 -          e = (i == ii);
    1.14 -          e = (i != ii);
    1.15 -          e = (i < ii);
    1.16 +          e = (i == INVALID);
    1.17 +          e = (i != INVALID);
    1.18  
    1.19            ignore_unused_variable_warning(l);
    1.20            ignore_unused_variable_warning(e);
    1.21            ignore_unused_variable_warning(id);
    1.22 -          ignore_unused_variable_warning(ii);
    1.23            ignore_unused_variable_warning(ed);
    1.24          }
    1.25          _Path& p;
    1.26 @@ -171,19 +169,17 @@
    1.27            int l = p.length();
    1.28            int e = p.empty();
    1.29  
    1.30 -          typename _Path::RevEdgeIt id, ii(INVALID), i(p);
    1.31 +          typename _Path::RevEdgeIt id, i(p);
    1.32  
    1.33            ++i;
    1.34            typename _Graph::Edge ed = i;
    1.35  
    1.36 -          e = (i == ii);
    1.37 -          e = (i != ii);
    1.38 -          e = (i < ii);
    1.39 +          e = (i == INVALID);
    1.40 +          e = (i != INVALID);
    1.41  
    1.42            ignore_unused_variable_warning(l);
    1.43            ignore_unused_variable_warning(e);
    1.44            ignore_unused_variable_warning(id);
    1.45 -          ignore_unused_variable_warning(ii);
    1.46            ignore_unused_variable_warning(ed);
    1.47          }
    1.48          _Path& p;