COIN-OR::LEMON - Graph Library

Changeset 139:c76f1eea05d2 in lemon-0.x


Ignore:
Timestamp:
03/01/04 15:33:00 (16 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@193
Message:

next, getNext

Location:
src/work
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/work/list_graph.hh

    r134 r139  
    306306    bool valid(NodeIt n) const { return n.valid(); }
    307307   
    308     template <typename It> It next(It it) const {
    309       It tmp(it); return goNext(tmp); }
    310     template <typename It> It& goNext(It& it) const { return ++it; }
     308    template <typename It> It getNext(It it) const {
     309      It tmp(it); return next(tmp); }
     310    template <typename It> It& next(It& it) const { return ++it; }
    311311   
    312312
  • src/work/marci/edmonds_karp_demo.cc

    r138 r139  
    1111// Use a DIMACS max flow file as stdin.
    1212// read_dimacs_demo < dimacs_max_flow_file
     13
     14/*
     15  struct Ize {
     16  };
     17 
     18  struct Mize {
     19    Ize bumm;
     20  };
     21
     22  template <typename B>
     23    class Huha {
     24    public:
     25      int u;
     26      B brr;
     27    };
     28*/
     29
    1330int main(int, char **) {
    1431  typedef ListGraph::NodeIt NodeIt;
    1532  typedef ListGraph::EachEdgeIt EachEdgeIt;
     33
     34/*
     35  Mize mize[10];
     36  Mize bize[0];
     37  Mize zize;
     38  typedef Mize Tize[0];
     39
     40  std::cout << &zize << " " << sizeof(mize) << sizeof(Tize) << std::endl;
     41  std::cout << sizeof(bize) << std::endl;
     42
     43
     44  Huha<Tize> k;
     45  std::cout << sizeof(k) << std::endl;
     46*/
    1647
    1748  ListGraph G;
Note: See TracChangeset for help on using the changeset viewer.