ConstMap Class Template Reference
[Maps]

#include <lemon/maps.h>

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 NullMap.

Public Member Functions

 ConstMap ()
 Default constructor.
 ConstMap (const T &_v)
 Constructor with specified initial value.
operator[] (const K &) const
 
void setAll (const T &t)
 

Related Functions

(Note that these are not member functions.)

template<typename K, typename V>
ConstMap< K, V > constMap (const V &v)
 Returns a ConstMap class.
template<typename K, typename V, V v>
ConstMap< K, Const< V, v > > constMap ()
 Returns a ConstMap class with inlined value.

Constructor & Destructor Documentation

ConstMap (  )  [inline]

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

ConstMap ( const T &  _v  )  [inline]

Constructor with specified initial value.

Parameters:
_v is the initial value of the map.


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

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