abLEMON 1.9.0-101-gccb8629
A maintained fork of LEMON
Loading...
Searching...
No Matches
UnionFindEnum< IM >::ClassIt Class Reference

LEMON style iterator for the representant items. More...

#include <lemon/unionfind.h>

Public Member Functions

 ClassIt (const UnionFindEnum &ufe)
 Constructor of the iterator.
 ClassIt (Invalid)
 Constructor to get invalid iterator.
ClassIt & operator++ ()
 Increment operator.
 operator int () const
 Conversion operator.
bool operator== (const ClassIt &i)
 Equality operator.
bool operator!= (const ClassIt &i)
 Inequality operator.

Detailed Description

template< typename IM >
class lemon::UnionFindEnum< IM >::ClassIt

ClassIt is a lemon style iterator for the components. It iterates on the ids of the classes.

Constructor & Destructor Documentation

◆ ClassIt() [1/2]

template< typename IM >
ClassIt ( const UnionFindEnum & ufe)
inline

Constructor of the iterator

◆ ClassIt() [2/2]

template< typename IM >
ClassIt ( Invalid )
inline

Constructor to get invalid iterator

Member Function Documentation

◆ operator++()

template< typename IM >
ClassIt & operator++ ( )
inline

It steps to the next representant item.

◆ operator int()

template< typename IM >
operator int ( ) const
inline

It converts the iterator to the current representant item.

◆ operator==()

template< typename IM >
bool operator== ( const ClassIt & i)
inline

Equality operator

◆ operator!=()

template< typename IM >
bool operator!= ( const ClassIt & i)
inline

Inequality operator