Changeset 676:7ec5e7e6c7b4 in lemon-0.x for src/work/deba
- Timestamp:
- 06/08/04 08:44:05 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@914
- Location:
- src/work/deba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/deba/map_defines.h
r674 r676 1 // -*- c++ -*- 1 2 #ifndef MAP_DEFINES_H 2 3 #define MAP_DEFINES_H -
src/work/deba/map_registry.h
r627 r676 5 5 6 6 using namespace std; 7 8 namespace hugo { 7 9 8 10 /** … … 12 14 event. 13 15 */ 14 15 namespace hugo {16 17 16 template <typename G, typename K, typename KIt> 18 17 class MapRegistry { … … 24 23 25 24 25 ///. 26 27 ///. 28 /// 26 29 class MapBase { 27 30 public: … … 138 141 public: 139 142 143 ///. 140 144 MapRegistry() {} 141 145 146 ///. 142 147 MapRegistry(const MapRegistry&) {} 143 148 149 ///. 144 150 MapRegistry& operator=(const MapRegistry&) { 145 151 for (it = container.begin(); it != container.end(); ++it) { … … 150 156 } 151 157 158 ///. 152 159 ~MapRegistry() { 153 160 typename Container::iterator it; … … 162 169 public: 163 170 171 ///. 164 172 void attach(MapBase& map) { 165 173 if (map.registry) { … … 171 179 } 172 180 181 ///. 173 182 void detach(MapBase& map) { 174 183 container.back()->registry_index = map.registry_index; … … 180 189 181 190 191 ///. 182 192 virtual void add(Key& key) { 183 193 typename Container::iterator it; … … 187 197 } 188 198 199 ///. 189 200 virtual void erase(Key& key) { 190 201 typename Container::iterator it; -
src/work/deba/test_graph.h
r674 r676 35 35 36 36 typedef ListGraph Graph; 37 38 CREATE_MAP_REGISTRIES 39 CREATE_MAPS(ArrayMapFactory) 40 37 38 CREATE_MAP_REGISTRIES; 39 CREATE_MAPS(ArrayMapFactory); 40 41 41 private: 42 42 43 43 int node_id; 44 44 int edge_id; 45 45 int _node_num; 46 46 int _edge_num; 47 47 48 48 node_item* _first_node; 49 49 node_item* _last_node;
Note: See TracChangeset
for help on using the changeset viewer.