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>
Public Member Functions | |
ColIt () | |
Default constructor. | |
ColIt (const LpBase &solver) | |
ColIt (const Invalid &) | |
Invalid constructor & conversion. | |
ColIt & | operator++ () |
Next column. |
ColIt | ( | ) | [inline] |
Initialize the iterator to be invalid.
ColIt& operator++ | ( | ) | [inline] |
Assign the iterator to the next column.