A `diff' between two CoinWarmStartBasis objects. More...
#include <CoinWarmStartBasis.hpp>
Public Member Functions | |
virtual CoinWarmStartDiff * | clone () const |
`Virtual constructor' More... | |
virtual CoinWarmStartBasisDiff & | operator= (const CoinWarmStartBasisDiff &rhs) |
Assignment. More... | |
virtual | ~CoinWarmStartBasisDiff () |
Destructor. More... | |
![]() | |
virtual | ~CoinWarmStartDiff () |
Abstract destructor. More... | |
Protected Member Functions | |
CoinWarmStartBasisDiff () | |
Default constructor. More... | |
CoinWarmStartBasisDiff (const CoinWarmStartBasisDiff &cwsbd) | |
Copy constructor. More... | |
CoinWarmStartBasisDiff (int sze, const unsigned int *const diffNdxs, const unsigned int *const diffVals) | |
Standard constructor. More... | |
CoinWarmStartBasisDiff (const CoinWarmStartBasis *rhs) | |
Constructor when full is smaller than diff! More... | |
Private Attributes | |
int | sze_ |
Number of entries (and allocated capacity), in units of int . More... | |
unsigned int * | difference_ |
Array of diff indices and diff values. More... | |
Friends | |
CoinWarmStartDiff * | CoinWarmStartBasis::generateDiff (const CoinWarmStart *const oldCWS) const |
void | CoinWarmStartBasis::applyDiff (const CoinWarmStartDiff *const diff) |
A `diff' between two CoinWarmStartBasis objects.
This class exists in order to hide from the world the details of calculating and representing a `diff' between two CoinWarmStartBasis objects. For convenience, assignment, cloning, and deletion are visible to the world, and default and copy constructors are made available to derived classes. Knowledge of the rest of this structure, and of generating and applying diffs, is restricted to the friend functions CoinWarmStartBasis::generateDiff() and CoinWarmStartBasis::applyDiff().
The actual data structure is an unsigned int vector, difference_ which starts with indices of changed and then has values starting after sze_
Definition at line 395 of file CoinWarmStartBasis.hpp.
|
virtual |
Destructor.
|
inlineprotected |
Default constructor.
This is protected (rather than private) so that derived classes can see it when they make their default constructor protected or private.
Definition at line 418 of file CoinWarmStartBasis.hpp.
|
protected |
Copy constructor.
For convenience when copying objects containing CoinWarmStartBasisDiff objects. But consider whether you should be using clone() to retain polymorphism.
This is protected (rather than private) so that derived classes can see it when they make their copy constructor protected or private.
|
protected |
Standard constructor.
|
protected |
Constructor when full is smaller than diff!
|
inlinevirtual |
`Virtual constructor'
Implements CoinWarmStartDiff.
Definition at line 399 of file CoinWarmStartBasis.hpp.
|
virtual |
Assignment.
|
friend |
|
friend |
|
private |
Number of entries (and allocated capacity), in units of int
.
Definition at line 447 of file CoinWarmStartBasis.hpp.
|
private |
Array of diff indices and diff values.
Definition at line 451 of file CoinWarmStartBasis.hpp.