ConvertMap

Declared in lemon/maps.h, in the group Map Adaptors; the same class on the Doxygen site.

template< typename M , typename V >
class ConvertMap : public MapBase< M::Key , V >

Map adaptor to convert the Value type of a map to another type using the default conversion.

Map adaptor to convert the Value type of a readable map to another type using the default conversion. The Key type of it is inherited from M and the Value type is V. This type conforms to the ReadMap concept.

The simplest way of using this map is through the convertMap() function.

Public Types

typedef M::Key Key

typedef V Value

Public Functions

inline ConvertMap( const M & m )

Constructor.

Parameters:

m – The underlying map.

inline Value operator[]( const Key & k ) const