FunctorMap Class Template Reference
[Map Adaptors]

#include <lemon/maps.h>

Inheritance diagram for FunctorMap:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<typename F, typename K = typename F::argument_type, typename V = typename F::result_type>
class lemon::FunctorMap< F, K, V >

This read only map returns the value of a given functor.

Template parameters K and V will become its Key and Value. In most cases they have to be given explicitly because a functor typically does not provide argument_type and result_type typedefs.

Parameter F is the type of the used functor.

See also:
MapFunctor

Public Member Functions

 FunctorMap (const F &_f=F())
 Constructor.
Value operator[] (Key k) const
 

Related Functions

(Note that these are not member functions.)

template<typename K, typename V, typename F>
FunctorMap< F, K, V > functorMap (const F &f)
 Returns a FunctorMap class.

The documentation for this class was generated from the following file:

Generated on Sat Apr 19 14:20:35 2008 for LEMON by  doxygen 1.5.5