[Lemon-commits] [lemon_svn] hegyi: r1114 - hugo/trunk/src/hugo/skeletons

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


Author: hegyi
Date: Wed Sep  8 13:48:24 2004
New Revision: 1114

Modified:
   hugo/trunk/src/hugo/skeletons/path.h

Log:
Getting compilable with path_test

Modified: hugo/trunk/src/hugo/skeletons/path.h
==============================================================================
--- hugo/trunk/src/hugo/skeletons/path.h	(original)
+++ hugo/trunk/src/hugo/skeletons/path.h	Wed Sep  8 13:48:24 2004
@@ -1,3 +1,4 @@
+#define SKELETON
 // -*- c++ -*- //
 
 ///\ingroup skeletons
@@ -28,11 +29,11 @@
     public:
       
       /// Type of the underlying graph.
-      typedef typename GR Graph;
+      typedef /*typename*/ GR Graph;
       /// Edge type of the underlying graph.
       typedef typename Graph::Edge GraphEdge; 
       /// Node type of the underlying graph.
-      typedef typename Graph::Node GraphNode;
+     typedef typename Graph::Node GraphNode;
       class NodeIt;
       class EdgeIt;
       
@@ -41,7 +42,7 @@
       Path(const Graph &_G) {}
       
       /// Length of the path.
-      size_t length() const {}
+      size_t length() const {return 0;}
       /// Returns whether the path is empty.
       bool empty() const {}
       
@@ -52,12 +53,12 @@
       ///
       /// Starting point of the path.
       /// Returns INVALID if the path is empty.
-      NodeIt head() const {}
+      GraphNode/*It*/ head() const {return INVALID;}
       /// \brief End point of the path.
       ///
       /// End point of the path.
       /// Returns INVALID if the path is empty.
-      NodeIt tail() const {}
+      GraphNode/*It*/ tail() const {return INVALID;}
 
       /// \brief First NodeIt/EdgeIt.
       ///
@@ -165,6 +166,9 @@
        */
       class Builder {
       public:
+
+        Path &P;
+
 	///\param _P the path you want to fill in.
 	///
 	Builder(Path &_P) : P(_P) {}



More information about the Lemon-commits mailing list