Changeset 1167:ccbca6ba8b59 in lemon-0.x
- Timestamp:
- 02/22/05 11:23:08 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1571
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/maps.dox
r1083 r1167 4 4 \page maps-page Maps 5 5 6 Maps play central role in LEMON. As their name suggests, they map a6 Maps play a central role in LEMON. As their name suggests, they map a 7 7 certain range of \e keys to certain \e values. Each map has two 8 8 <tt>typedef</tt>'s to determine the types of keys and values, like this: … … 47 47 \c ListGraph::OutEdgeIt etc.) 48 48 49 There are two ways t heassign a new value to a key49 There are two ways to assign a new value to a key 50 50 51 51 - In case of a <em>reference map</em> <tt>operator[]</tt> … … 71 71 \subsection read-maps Readable Maps 72 72 73 Readable maps are very frequently used as the input of the74 algorithm s. For this purpose the most straightforward way is the use of the73 Readable maps are very frequently used as the input of an 74 algorithm. For this purpose the most straightforward way is the use of the 75 75 default maps provided by LEMON's graph structures. 76 76 Very often however, it is more … … 116 116 public: 117 117 Value operator[](Key e) const { 118 return orig_len.get(e)- pot.get(G.target(e))-pot.get(G.source(e));118 return orig_len.get(e)-(pot.get(G.target(e))-pot.get(G.source(e))); 119 119 } 120 120
Note: See TracChangeset
for help on using the changeset viewer.