#include <lemon/maps.h>
Inherits MapBase< M::Key, M::Value >.
Inheritance diagram for MapFunctor:
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. |