Changeset 377:33fe0ee01dc5 in lemon-0.x for src/work/deba/node_map_base.h
- Timestamp:
- 04/22/04 18:36:57 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@507
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/deba/node_map_base.h
r340 r377 12 12 template <typename G, typename K> 13 13 class NodeMapBase { 14 15 #include "node_map_registry.h" 16 14 17 public: 15 18 typedef G Graph; 19 friend class NodeMapRegistry<G, K>; 16 20 17 21 typedef K KeyType; … … 63 67 virtual ~NodeMapBase() { 64 68 if (graph) { 65 graph .node_maps.erase(*this);69 graph->node_maps.erase(*this); 66 70 } 67 71 } … … 78 82 79 83 void init() { 80 for ( Graph::NodeIt it(g); g.valid(it); g.next(it)) {84 for (typename Graph::NodeIt it(g); g.valid(it); g.next(it)) { 81 85 add(it); 82 86 } … … 88 92 89 93 void destroy() { 90 for ( Graph::NodeIt it(g); g.valid(it); g.next(it)) {94 for (typename Graph::NodeIt it(g); g.valid(it); g.next(it)) { 91 95 erase(it); 92 96 } … … 113 117 class NotSupportedOperationException {}; 114 118 115 friend class Graph;116 119 }; 117 120
Note: See TracChangeset
for help on using the changeset viewer.