[Lemon-commits] [lemon_svn] alpar: r383 - hugo/trunk/doc
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:39:09 CET 2006
Author: alpar
Date: Thu Apr 1 17:32:31 2004
New Revision: 383
Modified:
hugo/trunk/doc/maps.dox
Log:
M_PI
Modified: hugo/trunk/doc/maps.dox
==============================================================================
--- hugo/trunk/doc/maps.dox (original)
+++ hugo/trunk/doc/maps.dox Thu Apr 1 17:32:31 2004
@@ -11,9 +11,10 @@
This simple map assigns \f$\pi\f$ to each edge.
\code
-class MyMap
+struct MyMap
{
- double operator[](Graph::EdgeIt e) const { return 1;}
+ typedef double ValueType;
+ double operator[](Graph::EdgeIt e) const { return M_PI;}
};
\endcode
@@ -28,6 +29,9 @@
const Graph::EdgeMap &ol;
const Graph::NodeMap &pot;
+public:
+ typedef double ValueType;
+
double operator[](Graph::EdgeIt e) const {
return ol.get(e)-pot.get(v)-pot.get(u);
}
@@ -37,4 +41,5 @@
};
\endcode
+\todo Don't we need \e to \e require a 'typedef xxx KeyType' tag, as well?
*/
More information about the Lemon-commits
mailing list