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

Method solution

test/int/bool.cpp:181–183  ·  view source on GitHub ↗

Check whether \a x is solution

Source from the content-addressed store, hash-verified

179 op(op0), c(c0) {}
180 /// Check whether \a x is solution
181 virtual bool solution(const Assignment& x) const {
182 return check(x[0],op,x[1]) == c;
183 }
184 /// Post constraint
185 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
186 using namespace Gecode;

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected