List of all members | Public Member Functions
IterableBoolMap< GR, K >::TrueIt Class Reference

Detailed Description

template<typename GR, typename K>
class lemon::IterableBoolMap< GR, K >::TrueIt

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

#include <lemon/maps.h>

Inherits Key.

Public Member Functions

 TrueIt (const IterableBoolMap &map)
 Creates an iterator. More...
 
 TrueIt (Invalid)
 Invalid constructor & conversion. More...
 
TrueItoperator++ ()
 Increment operator. More...
 

Constructor & Destructor Documentation

◆ TrueIt() [1/2]

TrueIt ( const IterableBoolMap map)
inlineexplicit

Creates an iterator. It iterates on the keys mapped to true.

Parameters
mapThe IterableBoolMap.

◆ TrueIt() [2/2]

TrueIt ( Invalid  )
inline

This constructor initializes the iterator to be invalid.

See also
Invalid for more details.

Member Function Documentation

◆ operator++()

TrueIt& operator++ ( )
inline

Increment operator.