
Optional box class. More...
#include <no-overlap.hh>
Public Member Functions | |
| void | optional (BoolView o) |
| Set Boolean view to o. | |
| bool | mandatory (void) const |
| Whether box is mandatory. | |
| bool | optional (void) const |
| Whether box is optional. | |
| bool | excluded (void) const |
| Whether box is excluded. | |
| ExecStatus | exclude (Space &home) |
| Exclude box. | |
| void | update (Space &home, bool share, OptBox< Dim, n > &r) |
| Update box during cloning. | |
| void | subscribe (Space &home, Propagator &p) |
| Subscribe propagator p to box. | |
| void | cancel (Space &home, Propagator &p) |
| Cancel propagator p from box. | |
Public Member Functions inherited from Gecode::Int::NoOverlap::ManBox< Dim, n > | |
| const Dim & | operator[] (int i) const |
| Access to dimension i. | |
| Dim & | operator[] (int i) |
| Access to dimension i. | |
| bool | nooverlap (const ManBox< Dim, n > &b) const |
| Check whether this box does not any longer overlap with b. | |
| bool | overlap (const ManBox< Dim, n > &b) const |
| Check whether this box overlaps with b. | |
| ExecStatus | nooverlap (Space &home, ManBox< Dim, n > &b) |
| Propagate that this box does not overlap with b. | |
| void | update (Space &home, bool share, ManBox< Dim, n > &r) |
| Update box during cloning. | |
Protected Attributes | |
| BoolView | o |
| Whether box is optional or not. | |
Protected Attributes inherited from Gecode::Int::NoOverlap::ManBox< Dim, n > | |
| Dim | d [n] |
| Dimensions. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Int::NoOverlap::ManBox< Dim, n > | |
| static int | dim (void) |
| Return number of dimensions. | |
Optional box class.
Definition at line 189 of file no-overlap.hh.
|
inline |
|
inline |
Whether box is mandatory.
Reimplemented from Gecode::Int::NoOverlap::ManBox< Dim, n >.
|
inline |
Whether box is optional.
Reimplemented from Gecode::Int::NoOverlap::ManBox< Dim, n >.
|
inline |
Whether box is excluded.
Reimplemented from Gecode::Int::NoOverlap::ManBox< Dim, n >.
|
inline |
Exclude box.
Reimplemented from Gecode::Int::NoOverlap::ManBox< Dim, n >.
|
inline |
|
inline |
Subscribe propagator p to box.
Reimplemented from Gecode::Int::NoOverlap::ManBox< Dim, n >.
|
inline |
Cancel propagator p from box.
Reimplemented from Gecode::Int::NoOverlap::ManBox< Dim, n >.
|
protected |
Whether box is optional or not.
Definition at line 193 of file no-overlap.hh.