Its usage is quite simple, for example, you can count the number of columns in an LP lp:
int count=0;
const Invalid INVALID
Invalid iterators.
Definition base.cc:32
Iterator for iterate over the columns of an LP problem.
Definition lp_base.h:155
#include <lemon/lp_base.h>
◆ ColIt() [1/3]
- Warning
- The default constructor sets the iterator to an undefined value.
◆ ColIt() [2/3]
| ColIt |
( |
const LpBase & | solver | ) |
|
|
inline |
Sets the iterator to the first Col.
◆ ColIt() [3/3]
Initialize the iterator to be invalid.
- See also
- Invalid for more details.
◆ operator++()
Assign the iterator to the next column.