# HG changeset patch # User hegyi # Date 1094644104 0 # Node ID 2b687ca1a08b97c31cfe1e446a452fc77a492bb0 # Parent 3e30caeb9c007213a14749ba3d7c063464a0a539 Getting compilable with path_test diff -r 3e30caeb9c00 -r 2b687ca1a08b src/hugo/skeletons/path.h --- a/src/hugo/skeletons/path.h Tue Sep 07 15:17:15 2004 +0000 +++ b/src/hugo/skeletons/path.h Wed Sep 08 11:48:24 2004 +0000 @@ -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) {}