[Lemon-commits] [lemon_svn] deba: r2383 - hugo/trunk/lemon/bits

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:52:14 CET 2006


Author: deba
Date: Thu Nov 24 16:48:53 2005
New Revision: 2383

Modified:
   hugo/trunk/lemon/bits/alteration_notifier.h
   hugo/trunk/lemon/bits/vector_map.h

Log:
Bug fix



Modified: hugo/trunk/lemon/bits/alteration_notifier.h
==============================================================================
--- hugo/trunk/lemon/bits/alteration_notifier.h	(original)
+++ hugo/trunk/lemon/bits/alteration_notifier.h	Thu Nov 24 16:48:53 2005
@@ -127,8 +127,6 @@
       Registry* registry;
       int registry_index;
 
-    public:
-
       /// \brief The member function to notificate the observer about an
       /// item is added to the container.
       ///

Modified: hugo/trunk/lemon/bits/vector_map.h
==============================================================================
--- hugo/trunk/lemon/bits/vector_map.h	(original)
+++ hugo/trunk/lemon/bits/vector_map.h	Thu Nov 24 16:48:53 2005
@@ -184,12 +184,28 @@
       }
     }
 
+    /// \brief Adds more new keys to the map.
+    ///		
+    /// It adds more new keys to the map. It called by the observer registry
+    /// and it overrides the add() member function of the observer base.     
+    virtual void add(const std::vector<Key>& keys) {
+      for (int i = 0; i < (int)keys.size(); ++i) {
+	add(keys[i]);
+      }
+    }
+
     /// \brief Erase a key from the map.
     ///
     /// Erase a key from the map. It called by the observer registry
     /// and it overrides the erase() member function of the observer base.     
     virtual void erase(const Key&) {}
 
+    /// \brief Erase more keys from the map.
+    ///
+    /// Erase more keys from the map. It called by the observer registry
+    /// and it overrides the erase() member function of the observer base.     
+    virtual void erase(const std::vector<Key>&) {}
+    
     /// \brief Buildes the map.
     ///	
     /// It buildes the map. It called by the observer registry



More information about the Lemon-commits mailing list