Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ScaleMap Class Template Reference
[Maps]

#include <lemon/maps.h>

List of all members.


Detailed Description

template<class M>
class lemon::ScaleMap< M >

This read only map returns the value of the given map multipied with a constant value. Its Key and Value is inherited from M.

Actually,

       ScaleMap<X> sc(x,v);
it is equivalent with
       ConstMap<X::Key, X::Value> c_tmp(v);
       MulMap<X, ConstMap<X::Key, X::Value> > sc(x,v);

Definition at line 356 of file maps.h.

Public Member Functions

 ScaleMap (const M &_m, const Value &_v)
 Constructor.

Related Functions

(Note that these are not member functions.)

ScaleMap< M > scaleMap (const M &m, const typename M::Value &v)
 Returns an ScaleMap class.


Constructor & Destructor Documentation

ScaleMap const M &  _m,
const Value &  _v
[inline]
 

Constructor

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

Definition at line 369 of file maps.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 21 15:02:35 2005 for LEMON by  doxygen 1.4.1