ItemIt Class Reference


Detailed Description

template<typename _Value, typename _ItemIntMap, typename _Comp = std::less<_Value>>
class lemon::HeapUnionFind< _Value, _ItemIntMap, _Comp >::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.
        for (ClassIt cit(huf); cit != INVALID; ++cit) {
          std::cout << "Class: ";
          for (ItemIt iit(huf, cit); iit != INVALID; ++iit) {
            std::cout << toString(iit) << ' ' << std::endl;
          }
          std::cout << std::endl;
        }
#include <lemon/unionfind.h>

List of all members.

Public Member Functions

 ItemIt ()
 Default constructor.
ItemItoperator++ ()
 Increment operator.
 operator const Item & () const
 Conversion operator.
bool operator== (const ItemIt &i)
 Equality operator.
bool operator!= (const ItemIt &i)
 Inequality operator.
bool operator== (Invalid)
 Equality operator.
bool operator!= (Invalid)
 Inequality operator.


Constructor & Destructor Documentation

ItemIt (  )  [inline]

Default constructor


Member Function Documentation

ItemIt& operator++ (  )  [inline]

It steps to the next item in the class.

operator const Item & (  )  const [inline]

It converts the iterator to the current item.

bool operator== ( const ItemIt i  )  [inline]

Equality operator

bool operator!= ( const ItemIt i  )  [inline]

Inequality operator

bool operator== ( Invalid   )  [inline]

Equality operator

bool operator!= ( Invalid   )  [inline]

Inequality operator


Generated on Thu Jun 4 04:06:41 2009 for LEMON by  doxygen 1.5.9