COIN-OR::LEMON - Graph Library

Changeset 1719:674182524bd9 in lemon-0.x for lemon/bits/map_iterator.h


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

Traits moved to own file
Tag for reference maps
Possibility to handle proper the return type
of the operator[]() const -- value or reference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/map_iterator.h

    r1587 r1719  
    105105    typedef typename Parent::ItemIt ItemIt;
    106106
    107     typedef typename ReferenceMapTraits<_Map>::Value MapValue;
    108     typedef typename ReferenceMapTraits<_Map>::Reference MapReference;
     107    typedef typename _Map::Value MapValue;
     108    typedef typename _Map::Reference MapReference;
    109109   
    110110  public:
     
    195195    typedef typename Parent::ItemIt ItemIt;
    196196
    197     typedef typename ReferenceMapTraits<_Map>::Value MapValue;
    198     typedef typename ReferenceMapTraits<_Map>::ConstReference
    199     MapReference;
     197    typedef typename _Map::Value MapValue;
     198    typedef typename _Map::ConstReference MapReference;
    200199   
    201200  public:
     
    354353
    355354    /// The value type of the iterator.
    356     typedef typename ReferenceMapTraits<Map>::Value MapValue;
     355    typedef typename Map::Value MapValue;
    357356    /// The reference type of the iterator.
    358     typedef typename ReferenceMapTraits<Map>::Reference MapReference;
     357    typedef typename Map::Reference MapReference;
    359358    /// The pointer type of the iterator.
    360     typedef typename ReferenceMapTraits<Map>::Pointer MapPointer;
     359    typedef typename Map::Pointer MapPointer;
    361360
    362361  public:
     
    434433
    435434    /// The value type of the iterator.
    436     typedef typename ReferenceMapTraits<Map>::Value MapValue;
     435    typedef typename Map::Value MapValue;
    437436    /// The reference type of the iterator.
    438     typedef typename ReferenceMapTraits<Map>::ConstReference MapReference;
     437    typedef typename Map::ConstReference MapReference;
    439438    /// The pointer type of the iterator.
    440     typedef typename ReferenceMapTraits<Map>::ConstPointer MapPointer;
     439    typedef typename Map::ConstPointer MapPointer;
    441440
    442441  public:
Note: See TracChangeset for help on using the changeset viewer.