ConstMap< K, Const< V, v > > Class Template Reference
[Maps]


Detailed Description

template<typename K, typename V, V v>
class lemon::ConstMap< K, Const< V, v > >

This readable map assigns a specified value to each key.

In other aspects it is equivalent to NullMap. So it conforms the ReadWriteMap concept, but it absorbs the data written to it.

The simplest way of using this map is through the constMap() function.

See also:
NullMap

IdentityMap

#include <lemon/maps.h>

Inheritance diagram for ConstMap< K, Const< V, v > >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ConstMap ()
 Constructor.
Value operator[] (const Key &) const
 Gives back the specified value.
void set (const Key &, const Value &)
 Absorbs the value.


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

Generated on Sun Oct 12 20:09:48 2008 for LEMON by  doxygen 1.5.7.1