Clp
1.17.6
|
A `diff' between two CoinWarmStartVector objects. More...
#include <CoinWarmStartVector.hpp>
Public Member Functions | |
virtual CoinWarmStartDiff * | clone () const |
`Virtual constructor' More... | |
virtual CoinWarmStartVectorDiff & | operator= (const CoinWarmStartVectorDiff< T > &rhs) |
Assignment. More... | |
virtual | ~CoinWarmStartVectorDiff () |
Destructor. More... | |
void | swap (CoinWarmStartVectorDiff &rhs) |
CoinWarmStartVectorDiff () | |
Default constructor. More... | |
CoinWarmStartVectorDiff (const CoinWarmStartVectorDiff< T > &rhs) | |
Copy constructor. More... | |
CoinWarmStartVectorDiff (int sze, const unsigned int *const diffNdxs, const T *const diffVals) | |
Standard constructor. More... | |
void | clear () |
Clear the data. More... | |
![]() | |
virtual | ~CoinWarmStartDiff () |
Abstract destructor. More... | |
Private Attributes | |
int | sze_ |
Number of entries (and allocated capacity), in units of T . More... | |
unsigned int * | diffNdxs_ |
Array of diff indices. More... | |
T * | diffVals_ |
Array of diff values. More... | |
Friends | |
CoinWarmStartDiff * | CoinWarmStartVector (const CoinWarmStart *const oldCWS) const |
void | CoinWarmStartVector (const CoinWarmStartDiff *const diff) |
A `diff' between two CoinWarmStartVector objects.
This class exists in order to hide from the world the details of calculating and representing a `diff' between two CoinWarmStartVector 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 CoinWarmStartVector::generateDiff() and CoinWarmStartVector::applyDiff().
The actual data structure is a pair of vectors, diffNdxs_ and diffVals_.
Definition at line 164 of file CoinWarmStartVector.hpp.
|
inlinevirtual |
Destructor.
Definition at line 182 of file CoinWarmStartVector.hpp.
|
inline |
Default constructor.
Definition at line 199 of file CoinWarmStartVector.hpp.
CoinWarmStartVectorDiff< T >::CoinWarmStartVectorDiff | ( | const CoinWarmStartVectorDiff< T > & | rhs | ) |
Copy constructor.
For convenience when copying objects containing CoinWarmStartVectorDiff objects. But consider whether you should be using clone() to retain polymorphism.
Definition at line 491 of file CoinWarmStartVector.hpp.
CoinWarmStartVectorDiff< T >::CoinWarmStartVectorDiff | ( | int | sze, |
const unsigned int *const | diffNdxs, | ||
const T *const | diffVals | ||
) |
Standard constructor.
Definition at line 507 of file CoinWarmStartVector.hpp.
|
inlinevirtual |
`Virtual constructor'
Implements CoinWarmStartDiff.
Definition at line 172 of file CoinWarmStartVector.hpp.
|
virtual |
Assignment.
Definition at line 466 of file CoinWarmStartVector.hpp.
|
inline |
Definition at line 188 of file CoinWarmStartVector.hpp.
|
inline |
Clear the data.
Make it appear as if the diff was just created using the default constructor.
Definition at line 223 of file CoinWarmStartVector.hpp.
|
friend |
|
friend |
|
private |
Number of entries (and allocated capacity), in units of T
.
Definition at line 236 of file CoinWarmStartVector.hpp.
|
private |
Array of diff indices.
Definition at line 240 of file CoinWarmStartVector.hpp.
|
private |
Array of diff values.
Definition at line 244 of file CoinWarmStartVector.hpp.