InverseMap Class Reference


Detailed Description

template<typename GR, typename K, typename V>
class lemon::CrossRefMap< GR, K, V >::InverseMap

The inverse of this map. The subscript operator of the map gives back the item that was last assigned to the value. #include <lemon/maps.h>

List of all members.

Public Types

typedef CrossRefMap::Key Value
 The value type of the InverseMap.
typedef CrossRefMap::Value Key
 The key type of the InverseMap.

Public Member Functions

 InverseMap (const CrossRefMap &inverted)
 Constructor.
Value operator[] (const Key &key) const
 Subscript operator.


Constructor & Destructor Documentation

InverseMap ( const CrossRefMap inverted  )  [inline, explicit]

Constructor of the InverseMap.


Member Function Documentation

Value operator[] ( const Key key  )  const [inline]

Subscript operator. It gives back an item that is assigned to the given value or INVALID if no such item exists.


doxygen