# HG changeset patch # User deba # Date 1132847333 0 # Node ID d0c28d9c9141673475be09d77a02bc1b57c787f4 # Parent 75ab76fc4bf24788b10b18b81014171fceb0af63 Bug fix diff -r 75ab76fc4bf2 -r d0c28d9c9141 lemon/bits/alteration_notifier.h --- a/lemon/bits/alteration_notifier.h Wed Nov 23 16:24:59 2005 +0000 +++ b/lemon/bits/alteration_notifier.h Thu Nov 24 15:48:53 2005 +0000 @@ -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. /// diff -r 75ab76fc4bf2 -r d0c28d9c9141 lemon/bits/vector_map.h --- a/lemon/bits/vector_map.h Wed Nov 23 16:24:59 2005 +0000 +++ b/lemon/bits/vector_map.h Thu Nov 24 15:48:53 2005 +0000 @@ -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& 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&) {} + /// \brief Buildes the map. /// /// It buildes the map. It called by the observer registry