1.1 --- a/src/hugo/skeletons/path.h Tue Sep 07 15:17:15 2004 +0000
1.2 +++ b/src/hugo/skeletons/path.h Wed Sep 08 11:48:24 2004 +0000
1.3 @@ -1,3 +1,4 @@
1.4 +#define SKELETON
1.5 // -*- c++ -*- //
1.6
1.7 ///\ingroup skeletons
1.8 @@ -28,11 +29,11 @@
1.9 public:
1.10
1.11 /// Type of the underlying graph.
1.12 - typedef typename GR Graph;
1.13 + typedef /*typename*/ GR Graph;
1.14 /// Edge type of the underlying graph.
1.15 typedef typename Graph::Edge GraphEdge;
1.16 /// Node type of the underlying graph.
1.17 - typedef typename Graph::Node GraphNode;
1.18 + typedef typename Graph::Node GraphNode;
1.19 class NodeIt;
1.20 class EdgeIt;
1.21
1.22 @@ -41,7 +42,7 @@
1.23 Path(const Graph &_G) {}
1.24
1.25 /// Length of the path.
1.26 - size_t length() const {}
1.27 + size_t length() const {return 0;}
1.28 /// Returns whether the path is empty.
1.29 bool empty() const {}
1.30
1.31 @@ -52,12 +53,12 @@
1.32 ///
1.33 /// Starting point of the path.
1.34 /// Returns INVALID if the path is empty.
1.35 - NodeIt head() const {}
1.36 + GraphNode/*It*/ head() const {return INVALID;}
1.37 /// \brief End point of the path.
1.38 ///
1.39 /// End point of the path.
1.40 /// Returns INVALID if the path is empty.
1.41 - NodeIt tail() const {}
1.42 + GraphNode/*It*/ tail() const {return INVALID;}
1.43
1.44 /// \brief First NodeIt/EdgeIt.
1.45 ///
1.46 @@ -165,6 +166,9 @@
1.47 */
1.48 class Builder {
1.49 public:
1.50 +
1.51 + Path &P;
1.52 +
1.53 ///\param _P the path you want to fill in.
1.54 ///
1.55 Builder(Path &_P) : P(_P) {}