[Lemon-commits] [lemon_svn] alpar: r292 - hugo/trunk/doc
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:38:33 CET 2006
Author: alpar
Date: Fri Mar 19 08:58:58 2004
New Revision: 292
Modified:
hugo/trunk/doc/maps.dox
Log:
.
Modified: hugo/trunk/doc/maps.dox
==============================================================================
--- hugo/trunk/doc/maps.dox (original)
+++ hugo/trunk/doc/maps.dox Fri Mar 19 08:58:58 2004
@@ -8,13 +8,25 @@
You can find some example below.
+This simple map assigns \f$\pi\f$ to each edge.
+
\code
class MyMap
{
- double get(Graph::EdgeIt e) { return 1;}
+ double get(Graph::EdgeIt e) { return M_PI;}
};
\endcode
+Or if we accept the new map style, it will look like this:
+
+\code
+class MyMap
+{
+ double operator[](Graph::EdgeIt e) { return 1;}
+};
+\endcode
+
+
A more complex example
\code
More information about the Lemon-commits
mailing list