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

Method post

test/set/sequence.cpp:114–119  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

112 }
113 /// Post constraint on \a x
114 virtual void post(Space& home, SetVarArray& x, IntVarArray&) {
115 SetVarArgs xs(x.size()-1);
116 for (int i=x.size()-1; i--;)
117 xs[i]=x[i];
118 Gecode::sequence(home, xs, x[x.size()-1]);
119 }
120 };
121 SeqU _sequ0(0);
122 SeqU _sequ1(1);

Callers

nothing calls this directly

Calls 2

sequenceFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected