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>
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.
|