[Lemon-commits] [lemon_svn] marci: r193 - in hugo/trunk/src/work: . marci

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:38:02 CET 2006


Author: marci
Date: Mon Mar  1 15:33:00 2004
New Revision: 193

Modified:
   hugo/trunk/src/work/list_graph.hh
   hugo/trunk/src/work/marci/edmonds_karp_demo.cc

Log:
next, getNext


Modified: hugo/trunk/src/work/list_graph.hh
==============================================================================
--- hugo/trunk/src/work/list_graph.hh	(original)
+++ hugo/trunk/src/work/list_graph.hh	Mon Mar  1 15:33:00 2004
@@ -305,9 +305,9 @@
     bool valid(EdgeIt e) const { return e.valid(); }
     bool valid(NodeIt n) const { return n.valid(); }
     
-    template <typename It> It next(It it) const { 
-      It tmp(it); return goNext(tmp); }
-    template <typename It> It& goNext(It& it) const { return ++it; }
+    template <typename It> It getNext(It it) const { 
+      It tmp(it); return next(tmp); }
+    template <typename It> It& next(It& it) const { return ++it; }
    
 
     /* for getting id's of graph objects */

Modified: hugo/trunk/src/work/marci/edmonds_karp_demo.cc
==============================================================================
--- hugo/trunk/src/work/marci/edmonds_karp_demo.cc	(original)
+++ hugo/trunk/src/work/marci/edmonds_karp_demo.cc	Mon Mar  1 15:33:00 2004
@@ -10,10 +10,41 @@
 
 // Use a DIMACS max flow file as stdin.
 // read_dimacs_demo < dimacs_max_flow_file
+
+/*
+  struct Ize {
+  };
+  
+  struct Mize {
+    Ize bumm;
+  };
+
+  template <typename B>
+    class Huha {
+    public:
+      int u;
+      B brr;
+    };
+*/
+
 int main(int, char **) {
   typedef ListGraph::NodeIt NodeIt;
   typedef ListGraph::EachEdgeIt EachEdgeIt;
 
+/*
+  Mize mize[10];
+  Mize bize[0];
+  Mize zize;
+  typedef Mize Tize[0];
+
+  std::cout << &zize << " " << sizeof(mize) << sizeof(Tize) << std::endl;
+  std::cout << sizeof(bize) << std::endl;
+
+
+  Huha<Tize> k;
+  std::cout << sizeof(k) << std::endl;
+*/
+
   ListGraph G;
   NodeIt s, t;
   ListGraph::EdgeMap<int> cap(G);



More information about the Lemon-commits mailing list