COIN-OR::LEMON - Graph Library

Changeset 1832:d0c28d9c9141 in lemon-0.x


Ignore:
Timestamp:
11/24/05 16:48:53 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2383
Message:

Bug fix

Location:
lemon/bits
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/alteration_notifier.h

    r1820 r1832  
    128128      int registry_index;
    129129
    130     public:
    131 
    132130      /// \brief The member function to notificate the observer about an
    133131      /// item is added to the container.
  • lemon/bits/vector_map.h

    r1810 r1832  
    185185    }
    186186
     187    /// \brief Adds more new keys to the map.
     188    ///         
     189    /// It adds more new keys to the map. It called by the observer registry
     190    /// and it overrides the add() member function of the observer base.     
     191    virtual void add(const std::vector<Key>& keys) {
     192      for (int i = 0; i < (int)keys.size(); ++i) {
     193        add(keys[i]);
     194      }
     195    }
     196
    187197    /// \brief Erase a key from the map.
    188198    ///
     
    191201    virtual void erase(const Key&) {}
    192202
     203    /// \brief Erase more keys from the map.
     204    ///
     205    /// Erase more keys from the map. It called by the observer registry
     206    /// and it overrides the erase() member function of the observer base.     
     207    virtual void erase(const std::vector<Key>&) {}
     208   
    193209    /// \brief Buildes the map.
    194210    ///
Note: See TracChangeset for help on using the changeset viewer.