When doing a sprint sort of algorithm on the cuts (i.e., leave out a number of cuts at the beginning and add them only as necessary) this object represents one of these cuts. More...
#include <BB_cut.hpp>
Public Member Functions | |
void | pack (BCP_buffer &buf) const |
Packing cut to a buffer. | |
Constructors and destructors | |
BB_indexed_cut (BCP_buffer &buf) | |
Constructor from content of buffer. | |
BB_indexed_cut (int index, double lb, double ub) | |
Constructor from the index itself. | |
~BB_indexed_cut () | |
Destructor. | |
int | index () const |
Constructor from content of buffer. | |
Static Public Member Functions | |
static void * | operator new (size_t size) |
static void | operator delete (void *p, size_t size) |
Private Member Functions | |
BB_indexed_cut () | |
BB_indexed_cut (const BB_indexed_cut &) | |
BB_indexed_cut & | operator= (const BB_indexed_cut &) |
The assignment operator is declared but not defined to disable it. | |
Private Attributes | |
int | index_ |
Static Private Attributes | |
static BCP_MemPool | memPool |
When doing a sprint sort of algorithm on the cuts (i.e., leave out a number of cuts at the beginning and add them only as necessary) this object represents one of these cuts.
Only the index of the cut needs to be stored.
Definition at line 19 of file BB_cut.hpp.
BB_indexed_cut::BB_indexed_cut | ( | ) | [private] |
BB_indexed_cut::BB_indexed_cut | ( | const BB_indexed_cut & | ) | [private] |
BB_indexed_cut::BB_indexed_cut | ( | BCP_buffer & | buf | ) |
Constructor from content of buffer.
BB_indexed_cut::BB_indexed_cut | ( | int | index, | |
double | lb, | |||
double | ub | |||
) |
Constructor from the index itself.
BB_indexed_cut::~BB_indexed_cut | ( | ) | [inline] |
Destructor.
Definition at line 55 of file BB_cut.hpp.
BB_indexed_cut& BB_indexed_cut::operator= | ( | const BB_indexed_cut & | ) | [private] |
The assignment operator is declared but not defined to disable it.
Reimplemented from BCP_cut_algo.
static void* BB_indexed_cut::operator new | ( | size_t | size | ) | [inline, static] |
Definition at line 35 of file BB_cut.hpp.
References BCP_MemPool::alloc(), and memPool.
static void BB_indexed_cut::operator delete | ( | void * | p, | |
size_t | size | |||
) | [inline, static] |
Definition at line 39 of file BB_cut.hpp.
References BCP_MemPool::free(), and memPool.
void BB_indexed_cut::pack | ( | BCP_buffer & | buf | ) | const |
Packing cut to a buffer.
int BB_indexed_cut::index | ( | ) | const [inline] |
BCP_MemPool BB_indexed_cut::memPool [static, private] |
Definition at line 29 of file BB_cut.hpp.
Referenced by operator delete(), and operator new().
int BB_indexed_cut::index_ [private] |
Definition at line 31 of file BB_cut.hpp.
Referenced by index().