Very simple class for containing data on set. More...
#include <CoinMpsIO.hpp>
Public Member Functions | |
Constructor and destructor | |
CoinSet () | |
Default constructor. | |
CoinSet (int numberEntries, const int *which) | |
Constructor. | |
CoinSet (const CoinSet &) | |
Copy constructor. | |
CoinSet & | operator= (const CoinSet &rhs) |
Assignment operator. | |
virtual | ~CoinSet () |
Destructor. | |
gets | |
int | numberEntries () const |
Returns number of entries. | |
int | setType () const |
Returns type of set - 1 =SOS1, 2 =SOS2. | |
const int * | which () const |
Returns list of variables. | |
const double * | weights () const |
Returns weights. |
Protected Attributes | |
data | |
int | numberEntries_ |
Number of entries. | |
int | setType_ |
type of set | |
int * | which_ |
Which variables are in set. | |
double * | weights_ |
Weights. |
Very simple class for containing data on set.
Definition at line 222 of file CoinMpsIO.hpp.
CoinSet::CoinSet | ( | ) |
Default constructor.
CoinSet::CoinSet | ( | int | numberEntries, |
const int * | which | ||
) |
Constructor.
CoinSet::CoinSet | ( | const CoinSet & | ) |
Copy constructor.
|
virtual |
Destructor.
|
inline |
Returns number of entries.
Definition at line 247 of file CoinMpsIO.hpp.
|
inline |
Returns type of set - 1 =SOS1, 2 =SOS2.
Definition at line 250 of file CoinMpsIO.hpp.
|
inline |
Returns list of variables.
Definition at line 253 of file CoinMpsIO.hpp.
|
inline |
Returns weights.
Definition at line 256 of file CoinMpsIO.hpp.
|
protected |
Number of entries.
Definition at line 275 of file CoinMpsIO.hpp.
|
protected |
type of set
Definition at line 277 of file CoinMpsIO.hpp.
|
protected |
Which variables are in set.
Definition at line 279 of file CoinMpsIO.hpp.
|
protected |
Weights.
Definition at line 281 of file CoinMpsIO.hpp.