COIN-OR::LEMON - Graph Library

Changeset 1725:22752dd6c693 in lemon-0.x for lemon/graph_adaptor.h


Ignore:
Timestamp:
10/14/05 13:00:40 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2252
Message:

Using proper return type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_adaptor.h

    r1697 r1725  
    15271527      }
    15281528     
    1529       typename ReferenceMapTraits<NodeImpl>::Reference
     1529      typename MapTraits<NodeImpl>::ReturnValue
    15301530      operator[](const Node& key) {
    15311531        if (key.entry) { return entry[key]; }
     
    15331533      }
    15341534
    1535       T operator[](const Node& key) const {
     1535      typename MapTraits<NodeImpl>::ConstReturnValue
     1536      operator[](const Node& key) const {
    15361537        if (key.entry) { return entry[key]; }
    15371538        else { return exit[key]; }
     
    15571558      }
    15581559     
    1559       typename ReferenceMapTraits<EdgeImpl>::Reference
     1560      typename MapTraits<EdgeImpl>::ReturnValue
    15601561      operator[](const Edge& key) {
    15611562        if ((typename Parent::Edge&)key != INVALID) { return orig[key]; }
     
    15631564      }
    15641565
    1565       T operator[](const Edge& key) const {
     1566      typename MapTraits<EdgeImpl>::ConstReturnValue
     1567      operator[](const Edge& key) const {
    15661568        if ((typename Parent::Edge&)key != INVALID) { return orig[key]; }
    15671569        else {return bind[key.bind]; }
Note: See TracChangeset for help on using the changeset viewer.