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

Method post

test/set/element.cpp:368–374  ·  view source on GitHub ↗

Post constraint on \a x and \a y

Source from the content-addressed store, hash-verified

366 }
367 /// Post constraint on \a x and \a y
368 virtual void post(Gecode::Space& home, Gecode::SetVarArray& x,
369 Gecode::IntVarArray& y) {
370 // x-coordinate: x[0], y-coordinate: x[1], result: x[2]
371 using namespace Gecode;
372 Matrix<IntSetArgs> m(tm,2,2);
373 element(home, m, y[0], y[1], x[0]);
374 }
375 };
376
377 MatrixIntSet _emis;

Callers

nothing calls this directly

Calls 1

elementFunction · 0.50

Tested by

no test coverage detected