ConstMap Class Template Reference
[Maps]

#include <lemon/maps.h>

Inherits MapBase< K, T >.

Inheritance diagram for ConstMap:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename K, typename T>
class lemon::ConstMap< K, T >

This is a readable map which assigns a specified value to each key. In other aspects it is equivalent to the NullMap.
Todo:
set could be used to set the value.


Public Member Functions

 ConstMap ()
 Default constructor.
 ConstMap (const T &_v)
 

Related Functions

(Note that these are not member functions.)

ConstMap< K, V > constMap (const V &v)
 Returns a ConstMap class.
ConstMap< K, Const< V, v > > constMap ()
 Returns a ConstMap class.


Constructor & Destructor Documentation

ConstMap  )  [inline]
 

The value of the map will be uninitialized. (More exactly it will be default constructed.)

ConstMap const T &  _v  )  [inline]
 

Parameters:
_v The initial value of the map.


The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:42:12 2006 for LEMON by  doxygen 1.4.6