lemon/bits/map_iterator.h
changeset 1746 874e4bc21435
parent 1587 8f1c317ebeb4
equal deleted inserted replaced
1:a53dba901169 2:66e86b2dec61
   102 
   102 
   103   protected:
   103   protected:
   104 
   104 
   105     typedef typename Parent::ItemIt ItemIt;
   105     typedef typename Parent::ItemIt ItemIt;
   106 
   106 
   107     typedef typename ReferenceMapTraits<_Map>::Value MapValue;
   107     typedef typename _Map::Value MapValue;
   108     typedef typename ReferenceMapTraits<_Map>::Reference MapReference;
   108     typedef typename _Map::Reference MapReference;
   109     
   109     
   110   public:
   110   public:
   111 
   111 
   112     /// The value type of the iterator.
   112     /// The value type of the iterator.
   113     typedef extended_pair<Item, const Item&,
   113     typedef extended_pair<Item, const Item&,
   192 
   192 
   193   protected:
   193   protected:
   194 
   194 
   195     typedef typename Parent::ItemIt ItemIt;
   195     typedef typename Parent::ItemIt ItemIt;
   196 
   196 
   197     typedef typename ReferenceMapTraits<_Map>::Value MapValue;
   197     typedef typename _Map::Value MapValue;
   198     typedef typename ReferenceMapTraits<_Map>::ConstReference
   198     typedef typename _Map::ConstReference MapReference;
   199     MapReference;
       
   200     
   199     
   201   public:
   200   public:
   202 
   201 
   203     /// The value type of the iterator.
   202     /// The value type of the iterator.
   204     typedef extended_pair<Item, const Item&,
   203     typedef extended_pair<Item, const Item&,
   351 
   350 
   352     /// The iterator to iterate on the keys.
   351     /// The iterator to iterate on the keys.
   353     typedef typename Parent::ItemIt ItemIt;
   352     typedef typename Parent::ItemIt ItemIt;
   354 
   353 
   355     /// The value type of the iterator.
   354     /// The value type of the iterator.
   356     typedef typename ReferenceMapTraits<Map>::Value MapValue;
   355     typedef typename Map::Value MapValue;
   357     /// The reference type of the iterator.
   356     /// The reference type of the iterator.
   358     typedef typename ReferenceMapTraits<Map>::Reference MapReference;
   357     typedef typename Map::Reference MapReference;
   359     /// The pointer type of the iterator.
   358     /// The pointer type of the iterator.
   360     typedef typename ReferenceMapTraits<Map>::Pointer MapPointer;
   359     typedef typename Map::Pointer MapPointer;
   361 
   360 
   362   public:
   361   public:
   363 
   362 
   364     typedef MapValue Value;
   363     typedef MapValue Value;
   365     typedef MapReference Reference;
   364     typedef MapReference Reference;
   431 
   430 
   432     /// The iterator to iterate on the keys.
   431     /// The iterator to iterate on the keys.
   433     typedef typename Parent::ItemIt ItemIt;
   432     typedef typename Parent::ItemIt ItemIt;
   434 
   433 
   435     /// The value type of the iterator.
   434     /// The value type of the iterator.
   436     typedef typename ReferenceMapTraits<Map>::Value MapValue;
   435     typedef typename Map::Value MapValue;
   437     /// The reference type of the iterator.
   436     /// The reference type of the iterator.
   438     typedef typename ReferenceMapTraits<Map>::ConstReference MapReference;
   437     typedef typename Map::ConstReference MapReference;
   439     /// The pointer type of the iterator.
   438     /// The pointer type of the iterator.
   440     typedef typename ReferenceMapTraits<Map>::ConstPointer MapPointer;
   439     typedef typename Map::ConstPointer MapPointer;
   441 
   440 
   442   public:
   441   public:
   443 
   442 
   444     typedef MapValue Value;
   443     typedef MapValue Value;
   445     typedef MapReference Reference;
   444     typedef MapReference Reference;