All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
List of all members | Public Member Functions
IterableIntMap< GR, K >::ItemIt Class Reference

Detailed Description

template<typename GR, typename K>
class lemon::IterableIntMap< GR, K >::ItemIt

Iterator for the keys with the same value. It works like a graph item iterator, it can be converted to the item type of the map, incremented with ++ operator, and if the iterator leaves the last valid item, it will be equal to INVALID.

#include <lemon/maps.h>

Inherits Key.

Public Member Functions

 ItemIt (Invalid)
 Invalid constructor & conversion. More...
 
 ItemIt (const IterableIntMap &map, int value)
 Creates an iterator with a value. More...
 
ItemItoperator++ ()
 Increment operator. More...
 

Constructor & Destructor Documentation

ItemIt ( Invalid  )
inline

This constructor initializes the iterator to be invalid.

See Also
Invalid for more details.
ItemIt ( const IterableIntMap map,
int  value 
)
inline

Creates an iterator with a value. It iterates on the keys mapped to the given value.

Parameters
mapThe IterableIntMap.
valueThe value.

Member Function Documentation

ItemIt& operator++ ( )
inline

Increment operator.