Changeset 233:57ef4fd493d5 in lemon-0.x
- Timestamp:
- 03/22/04 17:07:42 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@330
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/list_graph.h
r232 r233 46 46 void set(Node n, T a) { container[/*G.id(n)*/n.node->id]=a; } 47 47 T get(Node n) const { return container[/*G.id(n)*/n.node->id]; } 48 std::vector<T>::reference operator[](Node n) {48 typename std::vector<T>::reference operator[](Node n) { 49 49 return container[/*G.id(n)*/n.node->id]; } 50 std::vector<T>::const_reference operator[](Node n) const {50 typename std::vector<T>::const_reference operator[](Node n) const { 51 51 return container[/*G.id(n)*/n.node->id]; 52 52 } … … 67 67 void set(Edge e, T a) { container[/*G.id(e)*/e.edge->id]=a; } 68 68 T get(Edge e) const { return container[/*G.id(e)*/e.edge->id]; } 69 std::vector<T>::reference operator[](Edge e) {69 typename std::vector<T>::reference operator[](Edge e) { 70 70 return container[/*G.id(e)*/e.edge->id]; } 71 std::vector<T>::const_reference operator[](Edge e) const {71 typename std::vector<T>::const_reference operator[](Edge e) const { 72 72 return container[/*G.id(e)*/e.edge->id]; 73 73 }
Note: See TracChangeset
for help on using the changeset viewer.