Changeset 783:81bf2d766164 in lemon-0.x for src/hugo/map_registry.h
- Timestamp:
- 09/02/04 12:54:26 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1076
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/hugo/map_registry.h
r782 r783 57 57 */ 58 58 59 MapBase(const MapBase& copy) : registry(0), graph(copy.graph) {59 MapBase(const MapBase& copy) : graph(copy.graph), registry(0) { 60 60 if (copy.registry) { 61 61 copy.registry->attach(*this); … … 75 75 copy.registry->attach(*this); 76 76 } 77 return *this; 77 78 } 78 79 … … 233 234 * Notify all the registered maps about a Key added. 234 235 */ 235 v irtual void add(Key& key) {236 void add(Key& key) { 236 237 typename Container::iterator it; 237 238 for (it = container.begin(); it != container.end(); ++it) { … … 243 244 * Notify all the registered maps about a Key erased. 244 245 */ 245 v irtual void erase(Key& key) {246 void erase(Key& key) { 246 247 typename Container::iterator it; 247 248 for (it = container.begin(); it != container.end(); ++it) { … … 253 254 * Notify all the registered maps about the map should be cleared. 254 255 */ 255 v irtual void clear() {256 void clear() { 256 257 typename Container::iterator it; 257 258 for (it = container.begin(); it != container.end(); ++it) {
Note: See TracChangeset
for help on using the changeset viewer.