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