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

Method same

test/nogoods.cpp:93–98  ·  view source on GitHub ↗

Check whether two solutions are the same

Source from the content-addressed store, hash-verified

91 }
92 /// Check whether two solutions are the same
93 bool same(const Queens& s) const {
94 for (int i=0; i<q.size(); i++)
95 if (q[i].val() != s.q[i].val())
96 return false;
97 return true;
98 }
99 /// Return increment for node stop
100 static unsigned int nodeinc(void) {
101 return 500;

Callers 1

runMethod · 0.45

Calls 2

sizeMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected