NegWriteMap< M > Class Template Reference
[Map Adaptors]


Detailed Description

template<typename M>
class lemon::NegWriteMap< M >

This read-write map returns the negative value of the value returned by the given map. Its Key and Value are inherited from M. The unary - operator must be defined for Value, of course.

See also:
NegMap
#include <lemon/maps.h>

Inheritance diagram for NegWriteMap< M >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 NegWriteMap (M &_m)
 Constructor.
Value operator[] (Key k) const
 
void set (Key k, const Value &v)
 

Related Functions

(Note that these are not member functions.)

template<typename M >
NegWriteMap< M > negMap (M &m)
 Returns a NegWriteMap class.


Generated on Thu Jun 4 04:05:57 2009 for LEMON by  doxygen 1.5.9