COIN-OR::LEMON - Graph Library

Changeset 783:81bf2d766164 in lemon-0.x for src/hugo/map_registry.h


Ignore:
Timestamp:
09/02/04 12:54:26 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1076
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/map_registry.h

    r782 r783  
    5757      */       
    5858       
    59       MapBase(const MapBase& copy) : registry(0), graph(copy.graph) {
     59      MapBase(const MapBase& copy) : graph(copy.graph), registry(0) {
    6060        if (copy.registry) {
    6161          copy.registry->attach(*this);
     
    7575          copy.registry->attach(*this);
    7676        }
     77        return *this;
    7778      }
    7879       
     
    233234     * Notify all the registered maps about a Key added.
    234235     */
    235     virtual void add(Key& key) {
     236    void add(Key& key) {
    236237      typename Container::iterator it;
    237238      for (it = container.begin(); it != container.end(); ++it) {
     
    243244     * Notify all the registered maps about a Key erased.
    244245     */
    245     virtual void erase(Key& key) {
     246    void erase(Key& key) {
    246247      typename Container::iterator it;
    247248      for (it = container.begin(); it != container.end(); ++it) {
     
    253254     * Notify all the registered maps about the map should be cleared.
    254255     */
    255     virtual void clear() {
     256    void clear() {
    256257      typename Container::iterator it;
    257258      for (it = container.begin(); it != container.end(); ++it) {
Note: See TracChangeset for help on using the changeset viewer.