Changeset 340:a2ce3c4780b7 in lemon-0.x for src/work/deba/edge_map_registry.h
- Timestamp:
- 04/16/04 15:42:03 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@459
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/deba/edge_map_registry.h
r337 r340 3 3 4 4 #include <vector> 5 6 #include "edge_map_base.h" 5 7 6 8 template <typename G, typename E> … … 10 12 typedef E Edge 11 13 12 typedef EdgeMapBase<Graph, Edge> EdgeMapBase;14 typedef EdgeMapBase<Graph, Edge> MapBase; 13 15 14 16 protected: … … 17 19 Container container; 18 20 19 void add( EdgeMapBase& map_base) {21 void add(MapBase& map_base) { 20 22 if (map_base.graph) { 21 23 map_base.graph->edge_maps.erase(map_base); … … 26 28 } 27 29 28 void erase( EdgeMapBase& map_base) {30 void erase(MapBase& map_base) { 29 31 if (map_base.graph != this) return; 30 32 container.back()->graph_index = map_base.graph_index; … … 34 36 } 35 37 36 void add Edge(Edge& edge) {38 void add(Edge& edge) { 37 39 typename Container::iterator it; 38 40 for (it = container.begin(); it != container.end(); ++it) { … … 41 43 } 42 44 43 void erase Edge(Edge& edge) {45 void erase(Edge& edge) { 44 46 typename Container::iterator it; 45 47 for (it = container.begin(); it != container.end(); ++it) { … … 48 50 } 49 51 50 friend class EdgeMapBase;52 friend class MapBase; 51 53 }; 52 54
Note: See TracChangeset
for help on using the changeset viewer.