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

Method solution

test/int/bool.cpp:204–206  ·  view source on GitHub ↗

Check whether \a x is solution

Source from the content-addressed store, hash-verified

202 op(op0), c(c0) {}
203 /// Check whether \a x is solution
204 virtual bool solution(const Assignment& x) const {
205 return check(x[0],op,x[0]) == c;
206 }
207 /// Post constraint
208 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
209 using namespace Gecode;

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected