WarmStart information that is only a vector. More...
#include <CoinWarmStartVector.hpp>
Public Member Functions | |
int | size () const |
return the size of the vector | |
const T * | values () const |
return a pointer to the array of vectors | |
void | assignVector (int size, T *&vec) |
Assign the vector to be the warmstart information. | |
CoinWarmStartVector () | |
CoinWarmStartVector (int size, const T *vec) | |
CoinWarmStartVector (const CoinWarmStartVector &rhs) | |
CoinWarmStartVector & | operator= (const CoinWarmStartVector &rhs) |
void | swap (CoinWarmStartVector &rhs) |
virtual CoinWarmStart * | clone () const |
`Virtual constructor' | |
virtual | ~CoinWarmStartVector () |
void | clear () |
Clear the data. | |
Vector warm start `diff' methods | |
virtual CoinWarmStartDiff * | generateDiff (const CoinWarmStart *const oldCWS) const |
Generate a `diff' that can convert the warm start passed as a parameter to the warm start specified by this . | |
virtual void | applyDiff (const CoinWarmStartDiff *const cwsdDiff) |
Apply diff to this warm start. | |
![]() | |
virtual | ~CoinWarmStart () |
Abstract destructor. |
Protected Member Functions | |
void | gutsOfDestructor () |
void | gutsOfCopy (const CoinWarmStartVector< T > &rhs) |
Private Attributes | |
Private data members | |
int | size_ |
the size of the vector | |
T * | values_ |
the vector itself |
WarmStart information that is only a vector.
Definition at line 25 of file CoinWarmStartVector.hpp.
|
inline |
Definition at line 53 of file CoinWarmStartVector.hpp.
|
inline |
Definition at line 55 of file CoinWarmStartVector.hpp.
|
inline |
Definition at line 60 of file CoinWarmStartVector.hpp.
|
inlinevirtual |
Definition at line 84 of file CoinWarmStartVector.hpp.
|
inlineprotected |
Definition at line 28 of file CoinWarmStartVector.hpp.
|
inlineprotected |
Definition at line 31 of file CoinWarmStartVector.hpp.
|
inline |
return the size of the vector
Definition at line 39 of file CoinWarmStartVector.hpp.
|
inline |
return a pointer to the array of vectors
Definition at line 41 of file CoinWarmStartVector.hpp.
|
inline |
Assign the vector to be the warmstart information.
In this method the object assumes ownership of the pointer and upon return #vector will be a NULL pointer. If copying is desirable use the constructor.
Definition at line 46 of file CoinWarmStartVector.hpp.
|
inline |
Definition at line 64 of file CoinWarmStartVector.hpp.
|
inline |
Definition at line 72 of file CoinWarmStartVector.hpp.
|
inlinevirtual |
`Virtual constructor'
Implements CoinWarmStart.
Definition at line 80 of file CoinWarmStartVector.hpp.
|
inline |
Clear the data.
Make it appear as if the warmstart was just created using the default constructor.
Definition at line 93 of file CoinWarmStartVector.hpp.
|
virtual |
Generate a `diff' that can convert the warm start passed as a parameter to the warm start specified by this
.
The capabilities are limited: the basis passed as a parameter can be no larger than the basis pointed to by this
.
Reimplemented from CoinWarmStart.
Definition at line 331 of file CoinWarmStartVector.hpp.
|
virtual |
Apply diff
to this warm start.
Update this warm start by applying diff
. It's assumed that the allocated capacity of the warm start is sufficiently large.
Reimplemented from CoinWarmStart.
Definition at line 395 of file CoinWarmStartVector.hpp.
|
private |
the size of the vector
Definition at line 126 of file CoinWarmStartVector.hpp.
|
private |
the vector itself
Definition at line 128 of file CoinWarmStartVector.hpp.