ReferenceMap< K, T, R, CR > Class Template Reference
[Concepts]


Detailed Description

template<typename K, typename T, typename R, typename CR>
class lemon::concepts::ReferenceMap< K, T, R, CR >

Dereferable map concept.

Todo:
Rethink this concept.
#include <lemon/concepts/maps.h>

Inheritance diagram for ReferenceMap< K, T, R, CR >:

Inheritance graph
[legend]

List of all members.

Public Types

typedef True ReferenceMapTag
 Tag for reference maps.
typedef K Key
 The key type of the map.
typedef T Value
 The value type of the map. (The type of objects associated with the keys).
typedef R Reference
 The reference type of the map.
typedef CR ConstReference
 The const reference type of the map.

Public Member Functions

Reference operator[] (const Key &)
 Returns a reference to the value associated with a key.
ConstReference operator[] (const Key &) const
 Returns a const reference to the value associated with a key.
void set (const Key &k, const Value &t)
 Sets the value associated with a key.


Generated on Thu Jun 4 04:06:53 2009 for LEMON by  doxygen 1.5.9