1.1 --- a/doc/maps.dox Wed Mar 31 17:57:15 2004 +0000
1.2 +++ b/doc/maps.dox Thu Apr 01 15:32:31 2004 +0000
1.3 @@ -11,9 +11,10 @@
1.4 This simple map assigns \f$\pi\f$ to each edge.
1.5
1.6 \code
1.7 -class MyMap
1.8 +struct MyMap
1.9 {
1.10 - double operator[](Graph::EdgeIt e) const { return 1;}
1.11 + typedef double ValueType;
1.12 + double operator[](Graph::EdgeIt e) const { return M_PI;}
1.13 };
1.14 \endcode
1.15
1.16 @@ -28,6 +29,9 @@
1.17 const Graph::EdgeMap &ol;
1.18 const Graph::NodeMap &pot;
1.19
1.20 +public:
1.21 + typedef double ValueType;
1.22 +
1.23 double operator[](Graph::EdgeIt e) const {
1.24 return ol.get(e)-pot.get(v)-pot.get(u);
1.25 }
1.26 @@ -37,4 +41,5 @@
1.27 };
1.28 \endcode
1.29
1.30 +\todo Don't we need \e to \e require a 'typedef xxx KeyType' tag, as well?
1.31 */