Base class for no-overlap propagator. More...
#include <no-overlap.hh>
Public Member Functions | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function. | |
virtual size_t | dispose (Space &home) |
Destructor. | |
Protected Member Functions | |
Base (Home home, Box *b, int n) | |
Constructor for posting with n mandatory boxes. | |
Base (Space &home, bool share, Base< Box > &p, int m) | |
Constructor for cloning p with m boxes. | |
Static Protected Member Functions | |
static int | partition (Box *b, int i, int n) |
Partition n boxes b starting at position i. | |
Protected Attributes | |
Box * | b |
Boxes. | |
int | n |
Number of mandatory boxes: b[0] ... b[n-1]. |
Gecode::Int::NoOverlap::Base::Base | ( | Home | home, |
Box * | b, | ||
int | n | ||
) | [inline, protected] |
int Gecode::Int::NoOverlap::Base::partition | ( | Box * | b, |
int | i, | ||
int | n | ||
) | [inline, static, protected] |
PropCost Gecode::Int::NoOverlap::Base::cost | ( | const Space & | home, |
const ModEventDelta & | med | ||
) | const [virtual] |
size_t Gecode::Int::NoOverlap::Base::dispose | ( | Space & | home | ) | [inline, virtual] |
Destructor.
Reimplemented from Gecode::Actor.
Reimplemented in Gecode::Int::NoOverlap::OptProp, and Gecode::Int::NoOverlap::ManProp.
Box* Gecode::Int::NoOverlap::Base::b [protected] |
Boxes.
Definition at line 233 of file no-overlap.hh.
int Gecode::Int::NoOverlap::Base::n [protected] |
Number of mandatory boxes: b[0] ... b[n-1].
Definition at line 235 of file no-overlap.hh.