Bonmin  1.7
Public Types | Public Member Functions | Private Attributes
Bonmin::Cuts Class Reference

Generalizes OsiCuts to handle quadratic cuts. More...

#include <BonQuadCut.hpp>

List of all members.

Public Types

typedef vector< QuadCut * > QuadCutPtrStorage

Public Member Functions

 Cuts ()
 Default constructor.
 Cuts (const Cuts &other)
 Copy constructor.
Cutsoperator= (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.
QuadCutquadCutPtr (int i)
 Access to a quadratic cut by pointer.
const QuadCutquadCutPtr (int i) const
 Access to a quadratic cut by const pointer.
QuadCutquadCut (int i)
 Access to a quadratic cut by reference.
const QuadCutquadCut (int i) const
 Access to a quadratic cut by reference.
void eraseQuadCut (int i)
 Erase quadratic cut from the collection.

Private Attributes

QuadCutPtrStorage quadCuts_

Detailed Description

Generalizes OsiCuts to handle quadratic cuts.

Definition at line 101 of file BonQuadCut.hpp.


Member Typedef Documentation

Definition at line 103 of file BonQuadCut.hpp.


Constructor & Destructor Documentation

Bonmin::Cuts::Cuts ( )

Default constructor.

Bonmin::Cuts::Cuts ( const Cuts other)

Copy constructor.

Bonmin::Cuts::~Cuts ( )

Destructor.


Member Function Documentation

Cuts& Bonmin::Cuts::operator= ( const Cuts rhs)

Assignment operator.

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).

Warning:
c has to have been created with new (no malloc).

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.

References insert(), and quadCuts_.

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_.


Member Data Documentation

Definition at line 155 of file BonQuadCut.hpp.

Referenced by eraseQuadCut(), insert(), quadCut(), quadCutPtr(), sizeCuts(), and sizeQuadCuts().


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