Loading...
Searching...
No Matches
LpBase::Col Class Reference

## 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.

`#include <lemon/lp_base.h>`

Inheritance diagram for LpBase::Col:
[legend]

## Public Member Functions

| Col ()
| 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.

## Constructor & Destructor Documentation

## Col() [1/2]

Col | ( |  | ) |

inline

Warning
  The default constructor sets the Col to an undefined value.

## 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.