MapFunctor Class Template Reference
[Map Adaptors]

#include <lemon/maps.h>

Inherits MapBase< M::Key, M::Value >.

Inheritance diagram for MapFunctor:

Inheritance graph
[legend]
List of all members.

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.


Public Types

typedef M::Key argument_type
 
typedef M::Value result_type
 

Public Member Functions

 MapFunctor (const M &_m)
 Constructor.
Value operator() (Key k) const
 Returns a value of the map.
Value operator[] (Key k) const
 

Related Functions

(Note that these are not member functions.)

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


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:51:09 2006 for LEMON by  doxygen 1.5.1