#include <SbbCountRowCut.hpp>
Inheritance diagram for SbbCountRowCut:
Public Member Functions | |
void | increment (int change=1) |
Increment the number of references. | |
int | decrement (int change=1) |
Decrement the number of references and return the number left. | |
void | setInfo (SbbNodeInfo *, int whichOne) |
Set the information associating this cut with a node. | |
int | numberPointingToThis () |
Number of other SbbNodeInfo objects pointing to this row cut. | |
int | whichCutGenerator () const |
Which generator for cuts - as user order. | |
Constructors & destructors | |
SbbCountRowCut () | |
Default Constructor. | |
SbbCountRowCut (const OsiRowCut &) | |
`Copy' constructor using an OsiRowCut | |
SbbCountRowCut (const OsiRowCut &, SbbNodeInfo *, int whichOne, int whichGenerator=-1) | |
`Copy' constructor using an OsiRowCut and an SbbNodeInfo | |
virtual | ~SbbCountRowCut () |
Private Member Functions | |
SbbCountRowCut (const SbbCountRowCut &) | |
Standard copy is illegal (reference counts would be incorrect). | |
SbbCountRowCut & | operator= (const SbbCountRowCut &rhs) |
Standard assignment is illegal (reference counts would be incorrect). | |
Private Attributes | |
SbbNodeInfo * | owner_ |
Backward pointer to owning SbbNodeInfo. | |
int | ownerCut_ |
int | numberPointingToThis_ |
Number of other SbbNodeInfo objects pointing to this cut. | |
int | whichCutGenerator_ |
Which generator created this cut. |
SbbCountRowCut is an OsiRowCut object augmented with bookkeeping information: a reference count and information that specifies the the generator that created the cut and the node to which it's associated.
The general principles for handling the reference count are as follows:
Definition at line 32 of file SbbCountRowCut.hpp.
|
Destructor
Definition at line 52 of file SbbCountRowCut.cpp. References SbbNodeInfo::deleteCut(), numberPointingToThis_, owner_, and ownerCut_.
|
|
Set the information associating this cut with a node. An SbbNodeInfo object and an index in the cut set of the node. For locally valid cuts, the node will be the search tree node where the cut was generated. For globally valid cuts, it's the node where the cut was activated. Definition at line 78 of file SbbCountRowCut.cpp. References owner_, and ownerCut_.
|
|
Index of cut in owner's cut set (cuts_ ). Definition at line 99 of file SbbCountRowCut.hpp. Referenced by setInfo(), and ~SbbCountRowCut(). |