src/hugo/map_registry.h
changeset 916 c0734a8c282c
parent 906 17f31d280385
child 919 6153d9cf78c6
equal deleted inserted replaced
7:ef4e70c18419 8:6d0ff0c57068
   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     }