ConstMap< K, T > Class Template Reference
[Maps]


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. #include <lemon/maps.h>

Inheritance diagram for ConstMap< K, T >:

Inheritance graph
[legend]

List of all members.

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.


Generated on Thu Jun 4 04:05:17 2009 for LEMON by  doxygen 1.5.9