Public Types | Public Member Functions

RangeIdMap< GR, K >::InverseMap Class Reference


Detailed Description

template<typename GR, typename K>
class lemon::RangeIdMap< GR, K >::InverseMap

The inverse map type of RangeIdMap.

#include <lemon/maps.h>

List of all members.

Public Types

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

Public Member Functions

 InverseMap (const RangeIdMap &inverted)
 Constructor.
Value operator[] (const Key &key) const
 Subscript operator.
unsigned int size () const
 Size of the map.

Constructor & Destructor Documentation

InverseMap ( const RangeIdMap inverted) [inline, explicit]

Constructor of the InverseMap.


Member Function Documentation

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

Subscript operator. It gives back the item that the descriptor currently belongs to.

unsigned int size ( ) const [inline]

Returns the size of the map.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines