equal
deleted
inserted
replaced
250 |
250 |
251 |
251 |
252 /** |
252 /** |
253 * Notify all the registered maps about a Key added. |
253 * Notify all the registered maps about a Key added. |
254 */ |
254 */ |
255 void add(KeyType& key) { |
255 void add(const KeyType& key) { |
256 typename Container::iterator it; |
256 typename Container::iterator it; |
257 for (it = container.begin(); it != container.end(); ++it) { |
257 for (it = container.begin(); it != container.end(); ++it) { |
258 (*it)->add(key); |
258 (*it)->add(key); |
259 } |
259 } |
260 } |
260 } |
261 |
261 |
262 /** |
262 /** |
263 * Notify all the registered maps about a Key erased. |
263 * Notify all the registered maps about a Key erased. |
264 */ |
264 */ |
265 void erase(KeyType& key) { |
265 void erase(const KeyType& key) { |
266 typename Container::iterator it; |
266 typename Container::iterator it; |
267 for (it = container.begin(); it != container.end(); ++it) { |
267 for (it = container.begin(); it != container.end(); ++it) { |
268 (*it)->erase(key); |
268 (*it)->erase(key); |
269 } |
269 } |
270 } |
270 } |