MapFunctor< M > Class Template Reference
[Map Adaptors]


Detailed Description

template<typename M>
class lemon::MapFunctor< M >

This class Converts a map to an STL style (unary) functor. That is it provides an operator() to read its values.

For the sake of convenience it also works as a ususal readable map, i.e. operator[] and the Key and Value typedefs also exist.

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

Inheritance diagram for MapFunctor< M >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 MapFunctor (const M &_m)
 Constructor.
Value operator() (Key k) const
 
Value operator[] (Key k) const
 

Related Functions

(Note that these are not member functions.)

template<typename M >
MapFunctor< M > mapFunctor (const M &m)
 Returns a MapFunctor class.


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