Bonmin
1.7
|
Generalizes OsiCuts to handle quadratic cuts. More...
#include <BonQuadCut.hpp>
Public Types | |
typedef vector< QuadCut * > | QuadCutPtrStorage |
Public Member Functions | |
Cuts () | |
Default constructor. | |
Cuts (const Cuts &other) | |
Copy constructor. | |
Cuts & | operator= (const Cuts &rhs) |
Assignment operator. | |
~Cuts () | |
Destructor. | |
void | insert (const QuadCut &c) |
insert a quadratic cut into the collection. | |
void | insert (QuadCut *&c) |
insert a quadratic cut into the collection (take control of the pointer and put a NULL on return). | |
void | insert (const Cuts &cs) |
insert a set of Cuts. | |
int | sizeQuadCuts () const |
Number of quadratic cuts in the collection. | |
int | sizeCuts () const |
Total number of cuts in the collection. | |
void | printCuts () const |
Print all cuts in the collection. | |
QuadCut * | quadCutPtr (int i) |
Access to a quadratic cut by pointer. | |
const QuadCut * | quadCutPtr (int i) const |
Access to a quadratic cut by const pointer. | |
QuadCut & | quadCut (int i) |
Access to a quadratic cut by reference. | |
const QuadCut & | quadCut (int i) const |
Access to a quadratic cut by reference. | |
void | eraseQuadCut (int i) |
Erase quadratic cut from the collection. | |
Private Attributes | |
QuadCutPtrStorage | quadCuts_ |
Generalizes OsiCuts to handle quadratic cuts.
Definition at line 101 of file BonQuadCut.hpp.
typedef vector<QuadCut *> Bonmin::Cuts::QuadCutPtrStorage |
Definition at line 103 of file BonQuadCut.hpp.
Bonmin::Cuts::Cuts | ( | ) |
Default constructor.
Bonmin::Cuts::Cuts | ( | const Cuts & | other | ) |
Copy constructor.
Bonmin::Cuts::~Cuts | ( | ) |
Destructor.
void Bonmin::Cuts::insert | ( | const QuadCut & | c | ) | [inline] |
insert a quadratic cut into the collection.
Definition at line 159 of file BonQuadCut.hpp.
References quadCuts_.
Referenced by insert().
void Bonmin::Cuts::insert | ( | QuadCut *& | c | ) | [inline] |
insert a quadratic cut into the collection (take control of the pointer and put a NULL on return).
Definition at line 164 of file BonQuadCut.hpp.
References quadCuts_.
void Bonmin::Cuts::insert | ( | const Cuts & | cs | ) | [inline] |
insert a set of Cuts.
Definition at line 170 of file BonQuadCut.hpp.
int Bonmin::Cuts::sizeQuadCuts | ( | ) | const [inline] |
Number of quadratic cuts in the collection.
Definition at line 178 of file BonQuadCut.hpp.
References quadCuts_.
int Bonmin::Cuts::sizeCuts | ( | ) | const [inline] |
Total number of cuts in the collection.
Definition at line 183 of file BonQuadCut.hpp.
References quadCuts_.
void Bonmin::Cuts::printCuts | ( | ) | const |
Print all cuts in the collection.
QuadCut * Bonmin::Cuts::quadCutPtr | ( | int | i | ) | [inline] |
Access to a quadratic cut by pointer.
Definition at line 188 of file BonQuadCut.hpp.
References quadCuts_.
const QuadCut * Bonmin::Cuts::quadCutPtr | ( | int | i | ) | const [inline] |
Access to a quadratic cut by const pointer.
Definition at line 193 of file BonQuadCut.hpp.
References quadCuts_.
QuadCut & Bonmin::Cuts::quadCut | ( | int | i | ) | [inline] |
Access to a quadratic cut by reference.
Definition at line 198 of file BonQuadCut.hpp.
References quadCuts_.
const QuadCut & Bonmin::Cuts::quadCut | ( | int | i | ) | const [inline] |
Access to a quadratic cut by reference.
Definition at line 203 of file BonQuadCut.hpp.
References quadCuts_.
void Bonmin::Cuts::eraseQuadCut | ( | int | i | ) | [inline] |
Erase quadratic cut from the collection.
Definition at line 208 of file BonQuadCut.hpp.
References quadCuts_.
QuadCutPtrStorage Bonmin::Cuts::quadCuts_ [private] |
Definition at line 155 of file BonQuadCut.hpp.
Referenced by eraseQuadCut(), insert(), quadCut(), quadCutPtr(), sizeCuts(), and sizeQuadCuts().