ShiftWriteMap< M, C > Class Template Reference
[Map Adaptors]


Detailed Description

template<typename M, typename C = typename M::Value>
class lemon::ShiftWriteMap< M, C >

This read-write map returns the sum of the given map and a constant value. It makes also possible to write the map. Its Key and Value are inherited from M.

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

Inheritance diagram for ShiftWriteMap< M, C >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ShiftWriteMap (M &_m, const C &_v)
 Constructor.
Value operator[] (Key k) const
 
void set (Key k, const Value &c)
 

Related Functions

(Note that these are not member functions.)

template<typename M , typename C >
ShiftWriteMap< M, C > shiftMap (M &m, const C &v)
 Returns a ShiftWriteMap class.


Constructor & Destructor Documentation

ShiftWriteMap ( M &  _m,
const C &  _v 
) [inline]

Constructor

Parameters:
_m is the undelying map
_v is the shift value


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