MCPcopy Create free account
hub / github.com/Gecode/gecode / GroupSpace

Method GroupSpace

test/groups.cpp:50–62  ·  view source on GitHub ↗

Constructor for creation

Source from the content-addressed store, hash-verified

48 Gecode::PropagatorGroup a, b;
49 /// Constructor for creation
50 GroupSpace(int n) : x(*this,10,-10,10) {
51 using namespace Gecode;
52 switch (n) {
53 case 2:
54 distinct((*this)(b), x, IPL_DOM);
55 // fall through
56 case 1:
57 rel((*this)(a), x[0], Gecode::IRT_LE, x[1]);
58 break;
59 default:
60 break;
61 }
62 }
63 /// Constructor for cloning \a s
64 GroupSpace(GroupSpace& s) : Space(s), a(s.a), b(s.b) {
65 x.update(*this,s.x);

Callers

nothing calls this directly

Calls 3

distinctFunction · 0.85
relFunction · 0.50
updateMethod · 0.45

Tested by

no test coverage detected