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
[Map Adaptors]

#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 (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
 
typedef M::Key Key
 
typedef M::Value Value
 

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 Sat Aug 27 14:16:08 2005 for LEMON by  doxygen 1.4.4