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

MapFunctor Class Template Reference
[Maps]

#include <lemon/maps.h>

List of all members.


Detailed Description

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

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

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

Definition at line 596 of file maps.h.

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.


Constructor & Destructor Documentation

MapFunctor const M &  _m  )  [inline]
 

Definition at line 607 of file maps.h.


Member Function Documentation

Value operator() Key  k  )  const [inline]
 

Definition at line 612 of file maps.h.

Value operator[] Key  k  )  const [inline]
 

Definition at line 615 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