NegWriteMap Class Template Reference
[Map Adaptors]

#include <lemon/maps.h>

Inheritance diagram for NegWriteMap:

Inheritance graph
[legend]

List of all members.


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

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.

The documentation for this class was generated from the following file:

Generated on Sat Apr 19 14:20:27 2008 for LEMON by  doxygen 1.5.5