abLEMON 1.9.0-101-gccb8629
A maintained fork of LEMON
Loading...
Searching...
No Matches
LpBase::Col Class Reference

Refer to a column of the LP. More...

#include <lemon/lp_base.h>

Inheritance diagram for LpBase::Col:

Public Member Functions

 Col ()=default
 Default constructor.
 Col (const Invalid &)
 Invalid constructor & conversion.
bool operator== (Col c) const
 Equality operator.
bool operator!= (Col c) const
 Inequality operator.
bool operator< (Col c) const
 Artificial ordering operator.

Detailed Description

This type is used to refer to a column of the LP.

Its value remains valid and correct even after the addition or erase of other columns.

Note
This class is similar to other Item types in LEMON, like Node and Arc types in digraph.

Constructor & Destructor Documentation

◆ Col() [1/2]

Col ( )
default
Warning
The default constructor sets the Col to an undefined value (to the first one when it is value-initialized, e.g., by Col()).

◆ Col() [2/2]

Col ( const Invalid & )
inline

This constructor initializes the Col to be invalid.

See also
Invalid for more details.

Member Function Documentation

◆ operator==()

bool operator== ( Col c) const
inline

Two Cols are equal if and only if they point to the same LP column or both are invalid.

◆ operator!=()

bool operator!= ( Col c) const
inline
See also
operator==( Col c )

◆ operator<()

bool operator< ( Col c) const
inline

To allow the use of this object in std::map or similar associative container we require this.

Note
This operator only have to define some strict ordering of the items; this order has nothing to do with the iteration ordering of the items.