LEMON style iterator for the items of a component.
More...
#include <lemon/unionfind.h>
template< typename IM >
class lemon::ExtendFindEnum< IM >::ItemIt
ClassIt is a lemon style iterator for the components. It iterates on the items of a class. By example if you want to iterate on each items of each classes then you may write the next code.
{
std::cout << "Class: ";
std::cout << toString( iit ) << ' ' << std::endl;
}
std::cout << std::endl;
}
LEMON style iterator for the classes.
Definition unionfind.h:805
ItemIt( const ExtendFindEnum & ufe , int cls )
Constructor of the iterator.
Definition unionfind.h:869
const Invalid INVALID
Invalid iterators.
Definition base.cc:33
◆ ItemIt() [1/2]
Constructor of the iterator. The iterator iterates on the class of the item.
◆ ItemIt() [2/2]
Constructor to get invalid iterator
◆ operator++()
It steps to the next item in the class.
◆ operator const Item &()
template< typename IM >
| operator const Item & |
( |
| ) |
const |
|
inline |
It converts the iterator to the current item.
◆ operator==()
template< typename IM >
| bool operator== |
( |
const ItemIt & | i | ) |
|
|
inline |
◆ operator!=()
template< typename IM >
| bool operator!= |
( |
const ItemIt & | i | ) |
|
|
inline |