Changeset 2207:75a29ac69c19 in lemon-0.x for lemon/grid_ugraph.h
- Timestamp:
- 09/07/06 15:27:16 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2933
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/grid_ugraph.h
r2151 r2207 27 27 #include <lemon/bits/graph_extender.h> 28 28 29 #include <lemon/ xy.h>29 #include <lemon/dim2.h> 30 30 31 31 ///\ingroup graphs … … 382 382 typedef ExtendedGridUGraphBase Parent; 383 383 384 /// \brief Map to get the indices of the nodes as xy<int>.385 /// 386 /// Map to get the indices of the nodes as xy<int>.384 /// \brief Map to get the indices of the nodes as dim2::Point<int>. 385 /// 386 /// Map to get the indices of the nodes as dim2::Point<int>. 387 387 class IndexMap { 388 388 public: … … 390 390 typedef GridUGraph::Node Key; 391 391 /// \brief The value type of the map 392 typedef xy<int> Value;392 typedef dim2::Point<int> Value; 393 393 394 394 /// \brief Constructor … … 401 401 /// The subscript operator. 402 402 Value operator[](Key key) const { 403 return xy<int>(graph.row(key), graph.col(key));403 return dim2::Point<int>(graph.row(key), graph.col(key)); 404 404 } 405 405
Note: See TracChangeset
for help on using the changeset viewer.