NotWriteMap

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

template< typename M >
class NotWriteMap : public MapBase< M::Key , bool >

Logical ‘not’ of a map (read-write version).

This read-write map returns the logical negation of the values of the given map. Its Key is inherited from M and its Value is bool. It makes also possible to write the map. When a value is set, the opposite value is set to the original map.

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

See also

NotMap

Public Types

typedef M::Key Key

typedef bool Value

Public Functions

inline NotWriteMap( M & m )

Constructor.

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

inline void set( const Key & k , bool v )