Changeset 1725:22752dd6c693 in lemon-0.x
- Timestamp:
- 10/14/05 13:00:40 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2252
- Location:
- lemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_adaptor.h
r1697 r1725 1527 1527 } 1528 1528 1529 typename ReferenceMapTraits<NodeImpl>::Reference1529 typename MapTraits<NodeImpl>::ReturnValue 1530 1530 operator[](const Node& key) { 1531 1531 if (key.entry) { return entry[key]; } … … 1533 1533 } 1534 1534 1535 T operator[](const Node& key) const { 1535 typename MapTraits<NodeImpl>::ConstReturnValue 1536 operator[](const Node& key) const { 1536 1537 if (key.entry) { return entry[key]; } 1537 1538 else { return exit[key]; } … … 1557 1558 } 1558 1559 1559 typename ReferenceMapTraits<EdgeImpl>::Reference1560 typename MapTraits<EdgeImpl>::ReturnValue 1560 1561 operator[](const Edge& key) { 1561 1562 if ((typename Parent::Edge&)key != INVALID) { return orig[key]; } … … 1563 1564 } 1564 1565 1565 T operator[](const Edge& key) const { 1566 typename MapTraits<EdgeImpl>::ConstReturnValue 1567 operator[](const Edge& key) const { 1566 1568 if ((typename Parent::Edge&)key != INVALID) { return orig[key]; } 1567 1569 else {return bind[key.bind]; } -
lemon/maps.h
r1705 r1725 19 19 20 20 #include <lemon/utility.h> 21 21 #include <lemon/traits.h> 22 22 23 23 ///\file … … 522 522 ///Constructor 523 523 ComposeMap(const M1 &_m1,const M2 &_m2) : m1(_m1), m2(_m2) {}; 524 Value operator[](Key k) const {return m1[m2[k]];} 524 525 typename MapTraits<M1>::ConstReturnValue 526 operator[](Key k) const {return m1[m2[k]];} 525 527 }; 526 528 ///Returns a \ref ComposeMap class
Note: See TracChangeset
for help on using the changeset viewer.