![]() |
aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
|
Class representing a variable ( a column ) of a linear program, i.e. More...
#include <agrum/CN/LpInterface.h>
Public Member Functions | |
| unsigned int | id () const |
| Variable id accessor. | |
| std::string | toString () const |
| Get the string representation of a calling variable. | |
Constructor / Destructor | |
| LpCol (unsigned int id) | |
| Default constructor. | |
| LpCol (const LpCol &col) | |
| Default copy constructor. | |
| ~LpCol () | |
| Default destructor. | |
Private Attributes | |
| unsigned int | _id_ |
| Variable id. | |
Operators overload | |
| bool | operator< (const LpCol &col) const |
Test of ordering < between two variables. | |
| bool | operator== (const LpCol &col) const |
Test of equality == between two variables. | |
| bool | operator!= (const LpCol &col) const |
Opposite of equality != test between two variables. | |
| LpCol & | operator= (const LpCol &col) |
Assignment operator = by copy. | |
| std::ostream & | operator<< (std::ostream &out, const LpCol &col) |
Overload of << to use with output streams ( such as std::cout << ). | |
Class representing a variable ( a column ) of a linear program, i.e.
a dimension of the problem.
Definition at line 80 of file LpInterface.h.
|
explicit |
Default constructor.
class LpCol
| id | The id of the variable. |
Definition at line 64 of file LpInterface.cpp.
References LpCol(), _id_, and id().
Referenced by LpCol(), LpCol(), ~LpCol(), gum::credal::lp::LpInterface< GUM_SCALAR >::addCols(), operator!=(), operator<(), operator<<, operator=(), and operator==().
| gum::credal::lp::LpCol::LpCol | ( | const LpCol & | col | ) |
| gum::credal::lp::LpCol::~LpCol | ( | ) |
Default destructor.
Definition at line 74 of file LpInterface.cpp.
References LpCol().
| unsigned int gum::credal::lp::LpCol::id | ( | ) | const |
Variable id accessor.
Referenced by LpCol().
Opposite of equality != test between two variables.
For use with maps, hashTable etc
| col | The constant reference to the variable to compare to this ( the caller ). |
True if this id is not the same than col id, false otherwise. References LpCol().
Test of ordering < between two variables.
For use with maps, hashTable etc
| col | The constant reference to the variable to compare to this ( the caller ). |
True if this id is smaller than col id, false otherwise. References LpCol().
Assignment operator = by copy.
| col | The constant reference to the variable to copy in this ( the caller ). |
References LpCol().
Test of equality == between two variables.
For use with maps, hashTable etc
| col | The constant reference to the variable to compare to this ( the caller ). |
True if this id is equals to col id, false otherwise. References LpCol().
| std::string gum::credal::lp::LpCol::toString | ( | ) | const |
Get the string representation of a calling variable.
|
friend |
Overload of << to use with output streams ( such as std::cout << ).
| out | The reference to the caller, i.e. left side of <<. |
| col | The constant reference to the variable whose representation we want. |
References LpCol().
|
private |