Changeset 786:d7b3b13b9df6 in lemon-0.x for src/hugo/map_registry.h
- Timestamp:
- 09/02/04 17:21:13 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1079
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/hugo/map_registry.h
r785 r786 26 26 public: 27 27 typedef G Graph; 28 typedef K Key ;28 typedef K KeyType; 29 29 typedef KIt KeyIt; 30 30 … … 39 39 public: 40 40 typedef G Graph; 41 typedef K Key ;41 typedef K KeyType; 42 42 typedef KIt KeyIt; 43 43 … … 136 136 */ 137 137 138 virtual void add(const Key &) = 0;138 virtual void add(const KeyType&) = 0; 139 139 /** 140 140 The erase member function should be overloaded in the subclasses. … … 142 142 */ 143 143 144 virtual void erase(const Key &) = 0;144 virtual void erase(const KeyType&) = 0; 145 145 146 146 /** … … 241 241 * Notify all the registered maps about a Key added. 242 242 */ 243 void add(Key & key) {243 void add(KeyType& key) { 244 244 typename Container::iterator it; 245 245 for (it = container.begin(); it != container.end(); ++it) { … … 251 251 * Notify all the registered maps about a Key erased. 252 252 */ 253 void erase(Key & key) {253 void erase(KeyType& key) { 254 254 typename Container::iterator it; 255 255 for (it = container.begin(); it != container.end(); ++it) {
Note: See TracChangeset
for help on using the changeset viewer.