A `diff' between two CoinWarmStartPrimalDual objects. More...
#include <CoinWarmStartPrimalDual.hpp>
Public Member Functions | |
virtual CoinWarmStartDiff * | clone () const |
`Virtual constructor'. To be used when retaining polymorphism is important More... | |
virtual | ~CoinWarmStartPrimalDualDiff () |
Destructor. More... | |
![]() | |
virtual | ~CoinWarmStartDiff () |
Abstract destructor. More... | |
Protected Member Functions | |
CoinWarmStartPrimalDualDiff () | |
Default constructor. More... | |
CoinWarmStartPrimalDualDiff (const CoinWarmStartPrimalDualDiff &rhs) | |
Copy constructor. More... | |
void | clear () |
Clear the data. More... | |
void | swap (CoinWarmStartPrimalDualDiff &rhs) |
Private Attributes | |
CoinWarmStartVectorDiff< double > | primalDiff_ |
These two differences describe the differences in the primal and in the dual vector. More... | |
CoinWarmStartVectorDiff< double > | dualDiff_ |
Friends | |
CoinWarmStartDiff * | CoinWarmStartPrimalDual::generateDiff (const CoinWarmStart *const oldCWS) const |
void | CoinWarmStartPrimalDual::applyDiff (const CoinWarmStartDiff *const diff) |
A `diff' between two CoinWarmStartPrimalDual objects.
This class exists in order to hide from the world the details of calculating and representing a `diff' between two CoinWarmStartPrimalDual 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 CoinWarmStartPrimalDual::generateDiff() and CoinWarmStartPrimalDual::applyDiff().
The actual data structure is a pair of vectors, #diffNdxs_ and #diffVals_.
Definition at line 142 of file CoinWarmStartPrimalDual.hpp.
|
inlinevirtual |
Destructor.
Definition at line 159 of file CoinWarmStartPrimalDual.hpp.
|
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 169 of file CoinWarmStartPrimalDual.hpp.
|
inlineprotected |
Copy constructor.
For convenience when copying objects containing CoinWarmStartPrimalDualDiff 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 the make their copy constructor protected or private.
Definition at line 181 of file CoinWarmStartPrimalDual.hpp.
|
inlinevirtual |
`Virtual constructor'. To be used when retaining polymorphism is important
Implements CoinWarmStartDiff.
Definition at line 153 of file CoinWarmStartPrimalDual.hpp.
|
inlineprotected |
Clear the data.
Make it appear as if the diff was just created using the default constructor.
Definition at line 189 of file CoinWarmStartPrimalDual.hpp.
|
inlineprotected |
Definition at line 194 of file CoinWarmStartPrimalDual.hpp.
|
friend |
|
friend |
|
private |
These two differences describe the differences in the primal and in the dual vector.
Definition at line 207 of file CoinWarmStartPrimalDual.hpp.
|
private |
Definition at line 208 of file CoinWarmStartPrimalDual.hpp.