COIN-OR::LEMON - Graph Library

Changeset 2031:080d51024ac5 in lemon-0.x for lemon/bits/default_map.h


Ignore:
Timestamp:
04/03/06 11:45:23 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2670
Message:

Correcting the structure of the graph's and adaptor's map.
The template assign operators and map iterators can be used for adaptors also.

Some bugfix in the adaptors

New class SwapBpUGraphAdaptor which swaps the two nodeset of the graph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/default_map.h

    r1999 r2031  
    164164      : Parent(graph, value) {}
    165165
     166    DefaultMap& operator=(const DefaultMap& cmap) {
     167      return operator=<DefaultMap>(cmap);
     168    }
     169
     170    template <typename CMap>
     171    DefaultMap& operator=(const CMap& cmap) {
     172      Parent::operator=(cmap);
     173      return *this;
     174    }
     175
    166176  };
    167177
Note: See TracChangeset for help on using the changeset viewer.