ScaleWriteMap
Declared in lemon/maps.h, in the group Map Adaptors; the same class on the Doxygen site.
-
template< typename M , typename C = typename M::Value >
class ScaleWriteMap : public MapBase< M::Key , M::Value > Scales a map with a constant (read-write version).
This read-write map returns the value of the given map multiplied from the left side with a constant value. Its
KeyandValueare inherited fromM. It can also be used as write map if the/operator is defined betweenValueandCand the given multiplier is not zero.The simplest way of using this map is through the scaleWriteMap() function.
See also