All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
List of all members | Public Member Functions
LpBase::RowIt Class Reference

Detailed Description

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

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

#include <lemon/lp_base.h>

+ Inheritance diagram for LpBase::RowIt:

Public Member Functions

 RowIt ()
 Default constructor. More...
 
 RowIt (const LpBase &solver)
 Sets the iterator to the first Row. More...
 
 RowIt (const Invalid &)
 Invalid constructor & conversion. More...
 
RowItoperator++ ()
 Next row. More...
 
- Public Member Functions inherited from LpBase::Row
 Row ()
 Default constructor. More...
 
 Row (const Invalid &)
 Invalid constructor & conversion. More...
 
bool operator== (Row r) const
 Equality operator. More...
 
bool operator!= (Row r) const
 Inequality operator. More...
 
bool operator< (Row r) const
 Artificial ordering operator. More...
 

Constructor & Destructor Documentation

RowIt ( )
inline
Warning
The default constructor sets the iterator to an undefined value.
RowIt ( const LpBase solver)
inline

Sets the iterator to the first Row.

RowIt ( const Invalid )
inline

Initialize the iterator to be invalid.

See Also
Invalid for more details.

Member Function Documentation

RowIt& operator++ ( )
inline

Assign the iterator to the next row.