AbsMap

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

template< typename M >
class AbsMap : public MapBase< M::Key , M::Value >

Absolute value of a map.

This read-only map returns the absolute value of the values of the given map. Its Key and Value are inherited from M. Value must be comparable to 0 and the unary - operator must be defined for it, of course.

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

Public Types

typedef M::Key Key

typedef M::Value Value

Public Functions

inline AbsMap( const M & m )

Constructor.

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