ColIt Class Reference


Detailed Description

Its usage is quite simple, for example you can count the number of columns in an LP lp:

        int count=0;
        for (LpBase::ColIt c(lp); c!=INVALID; ++c) ++count;

#include <lemon/lp_base.h>

Inheritance diagram for ColIt:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ColIt ()
 Default constructor.
 ColIt (const LpBase &solver)
 ColIt (const Invalid &)
 Invalid constructor & conversion.
ColItoperator++ ()
 Next column.

Constructor & Destructor Documentation

ColIt (  )  [inline]
Warning:
The default constructor sets the iterator to an undefined value.
ColIt ( const LpBase solver  )  [inline]

Sets the iterator to the first Col.

ColIt ( const Invalid  )  [inline]

Initialize the iterator to be invalid.

See also:
Invalid for more details.

Member Function Documentation

ColIt& operator++ (  )  [inline]

Assign the iterator to the next column.


Generated on Sat Oct 3 07:24:20 2009 for LEMON by  doxygen 1.6.1