Cgl  0.60.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CoinWarmStartDualDiff Class Reference

A `diff' between two CoinWarmStartDual objects. More...

#include <CoinWarmStartDual.hpp>

+ Inheritance diagram for CoinWarmStartDualDiff:
+ Collaboration diagram for CoinWarmStartDualDiff:

Public Member Functions

virtual CoinWarmStartDiffclone () const
 `Virtual constructor' More...
virtual CoinWarmStartDualDiffoperator= (const CoinWarmStartDualDiff &rhs)
 Assignment. More...
virtual ~CoinWarmStartDualDiff ()
 Destructor. More...
- Public Member Functions inherited from CoinWarmStartDiff
virtual ~CoinWarmStartDiff ()
 Abstract destructor. More...

Protected Member Functions

 CoinWarmStartDualDiff ()
 Default constructor. More...
 CoinWarmStartDualDiff (const CoinWarmStartDualDiff &rhs)
 Copy constructor. More...

Private Member Functions

 CoinWarmStartDualDiff (int sze, const unsigned int *const diffNdxs, const double *const diffVals)
 Standard constructor. More...

Private Attributes

CoinWarmStartVectorDiff< double > diff_
 The difference in the dual vector is simply the difference in a vector. More...


CoinWarmStartDiffCoinWarmStartDual::generateDiff (const CoinWarmStart *const oldCWS) const
void CoinWarmStartDual::applyDiff (const CoinWarmStartDiff *const diff)

Detailed Description

A `diff' between two CoinWarmStartDual objects.

This class exists in order to hide from the world the details of calculating and representing a `diff' between two CoinWarmStartDual 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 CoinWarmStartDual::generateDiff() and CoinWarmStartDual::applyDiff().

The actual data structure is a pair of vectors, #diffNdxs_ and #diffVals_.

Definition at line 110 of file CoinWarmStartDual.hpp.

Constructor & Destructor Documentation

virtual CoinWarmStartDualDiff::~CoinWarmStartDualDiff ( )


Definition at line 128 of file CoinWarmStartDual.hpp.

CoinWarmStartDualDiff::CoinWarmStartDualDiff ( )

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 137 of file CoinWarmStartDual.hpp.

CoinWarmStartDualDiff::CoinWarmStartDualDiff ( const CoinWarmStartDualDiff rhs)

Copy constructor.

For convenience when copying objects containing CoinWarmStartDualDiff 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 152 of file CoinWarmStartDual.hpp.

CoinWarmStartDualDiff::CoinWarmStartDualDiff ( int  sze,
const unsigned int *const  diffNdxs,
const double *const  diffVals 

Standard constructor.

Definition at line 164 of file CoinWarmStartDual.hpp.

Member Function Documentation

virtual CoinWarmStartDiff* CoinWarmStartDualDiff::clone ( ) const

`Virtual constructor'

Implements CoinWarmStartDiff.

Definition at line 113 of file CoinWarmStartDual.hpp.

virtual CoinWarmStartDualDiff& CoinWarmStartDualDiff::operator= ( const CoinWarmStartDualDiff rhs)


Definition at line 119 of file CoinWarmStartDual.hpp.

Friends And Related Function Documentation

CoinWarmStartDiff* CoinWarmStartDual::generateDiff ( const CoinWarmStart *const  oldCWS) const
void CoinWarmStartDual::applyDiff ( const CoinWarmStartDiff *const  diff)

Member Data Documentation

CoinWarmStartVectorDiff< double > CoinWarmStartDualDiff::diff_

The difference in the dual vector is simply the difference in a vector.

Definition at line 174 of file CoinWarmStartDual.hpp.

The documentation for this class was generated from the following file: