Changeset 987:87f7c54892df in lemon0.x for doc
 Timestamp:
 11/13/04 18:07:10 (16 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1377
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

doc/maps.dox
r986 r987 10 10 11 11 \code 12 typedef Edge Key Type;13 typedef double Value Type;12 typedef Edge Key; 13 typedef double Value; 14 14 \endcode 15 15 … … 53 53 \endcode 54 54  <em>Writable maps</em> have 55 a member function \c set(Key Type,const ValueType &)55 a member function \c set(Key,const Value &) 56 56 for this purpose. 57 57 \code … … 83 83 struct MyMap 84 84 { 85 typedef double Value Type;86 typedef Graph::Edge Key Type;87 double operator[](Key Typee) const { return M_PI;}85 typedef double Value; 86 typedef Graph::Edge Key; 87 double operator[](Key e) const { return M_PI;} 88 88 }; 89 89 \endcode … … 96 96 struct MyMap : public MapBase<Graph::Edge,double> 97 97 { 98 Value Type operator[](KeyTypee) const { return M_PI;}98 Value operator[](Key e) const { return M_PI;} 99 99 }; 100 100 \endcode … … 112 112 113 113 public: 114 Value Type operator[](KeyTypee) const {114 Value operator[](Key e) const { 115 115 return orig_len.get(e)pot.get(G.target(e))pot.get(G.source(e)); 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.