Go to the documentation of this file.
40 namespace Test {
namespace Set {
64 ++sel2, selected++) {}
70 for (
int i=selected;
i--;++selector) {
71 if (selector.
val()>=3 || selector.
val()<0) {
92 for (
int i=
x.size()-2;
i--;)
108 :
SetTest(
t,2,ds_13,false), i0(-3,-3), i1(-1,1), i2(0,2) {}
113 ++sel2, selected++) {}
117 IntSet iss[] = {i0, i1, i2};
120 for (
int i=selected;
i--;++selector) {
121 if (selector.
val()>=3 || selector.
val()<0) {
142 xs[0] = i0; xs[1] = i1; xs[2] = i2;
158 ++sel2, selected++) {}
164 for (
int i=selected;
i--;++selector) {
165 if (selector.
val()>=3 || selector.
val()<0) {
185 for (
int i=
x.size()-2;
i--;)
202 ++sel2, selected++) {}
208 for (
int i=selected;
i--;++selector) {
209 if (selector.
val()>=3 || selector.
val()<0) {
229 for (
int i=
x.size()-2;
i--;)
247 ++sel2, selected++) {
256 unsigned int cardsum = 0;
257 for (
int i=selected;
i--;++selector) {
258 if (selector.
val()>=3 || selector.
val()<0) {
282 for (
int i=
x.size()-2;
i--;)
297 if (
x.intval() < 0 ||
x.intval() > 2)
306 for (
int i=
x.size()-1;
i--;)
322 :
SetTest(
t,1,ds_13,false,true), i0(-3,-3), i1(-1,1), i2(0,2) {}
325 if (
x.intval() < 0 ||
x.intval() > 2)
328 IntSet iss[] = {i0, i1, i2};
335 xs[0] = i0; xs[1] = i1; xs[2] = i2;
360 if ((
y[0] > 1) || (
y[1] > 1))
struct Gecode::@602::NNF::@65::@66 b
For binary nodes (and, or, eqv)
virtual void post(Space &home, SetVarArray &x, IntVarArray &)
Post constraint on x.
virtual bool solution(const SetAssignment &x) const
Test whether x is solution
Post propagator for SetVar x
Post propagator for SetVar SetOpType SetVar y
Test for ElementUnion constraint
Test for ElementUnionConst constraint
Test for ElementInter constraint
ElementInter(const char *t)
Create and register test.
ElementDisjoint _elementdisjoint("Element::Disjoint")
void element(Home home, IntSharedArray c, IntVar x0, IntVar x1, IntPropLevel)
Post domain consistent propagator for .
unsigned int size(I &i)
Size of all ranges of range iterator i.
Test for ElementSet constraint
int val(void) const
Return current value.
Post propagator for SetVar SetOpType SetVar SetRelType SetVar z
virtual void post(Space &home, SetVarArray &x, IntVarArray &)
Post constraint on x.
virtual bool solution(const SetAssignment &x) const
Test whether x is solution
ElementUnion(const char *t)
Create and register test.
ElementUnionConst _elementunionconst("Element::UnionConst")
Range iterator for integer sets.
Test for matrix element with integer set array and set variable
Generate all set assignments.
ElementInter _elementinter("Element::Inter")
union Gecode::@602::NNF::@65 u
Union depending on nodetype t.
Gecode toplevel namespace
ElementUnion _elementunion("Element::Union")
const unsigned int card
Maximum cardinality of an integer set.
struct Gecode::@602::NNF::@65::@67 a
For atomic nodes.
virtual bool solution(const SetAssignment &x) const
Test whether x is solution
ElementInterIn(const char *t)
Create and register test.
ElementDisjoint(const char *t)
Create and register test.
Test for ElementDisjoint constraint
Post propagator for SetVar SetOpType SetVar SetRelType r
Test for ElementInter constraint
virtual bool solution(const SetAssignment &x) const
Test whether x is solution
Value iterator producing subsets of an IntSet.
Base class for tests with set constraints
bool equal(I &i, J &j)
Check whether range iterators i and j are equal.
Range iterator for union of iterators.
MatrixIntSet(void)
Create and register test.
virtual void post(Space &home, SetVarArray &x, IntVarArray &y)
Post constraint on x.
ElementSetConst(const char *t)
Create and register test.
virtual void post(Space &home, SetVarArray &x, IntVarArray &)
Post constraint on x.
Matrix-interface for arrays.
virtual void post(Gecode::Space &home, Gecode::SetVarArray &x, Gecode::IntVarArray &y)
Post constraint on x and y.
Base class for assignments
virtual bool solution(const SetAssignment &x) const
Test whether x is solution
virtual void post(Space &home, SetVarArray &x, IntVarArray &y)
Post constraint on x.
ElementSetConst _elementsetconst("Element::SetConst")
ElementInterIn _elementinterin("Element::InterIn")
ElementSet(const char *t)
Create and register test.
Test for ElementSetConst constraint
virtual void post(Space &home, SetVarArray &x, IntVarArray &)
Post constraint on x.
void init(const IntSet &s)
Initialize with ranges for set s.
Gecode::IntSetArgs tm
Array for test matrix.
void init(const Gecode::IntSet &d, int cur)
Initialize with set d0 and bit-pattern cur0.
ElementUnionConst(const char *t)
Create and register test.
virtual bool solution(const SetAssignment &x) const
Test whether x is solution
ElementSet _elementset("Element::Set")
Test for Region memory area
Range iterator producing subsets of an IntSet.
Range iterator for intersection of iterators.
virtual bool solution(const SetAssignment &x) const
Test whether x is solution
virtual bool solution(const SetAssignment &x) const
Test whether x is solution
Gecode::IntArgs i({1, 2, 3, 4})
virtual void post(Space &home, SetVarArray &x, IntVarArray &)
Post constraint on x.