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

Method same

test/nogoods.cpp:174–181  ·  view source on GitHub ↗

Check whether two solutions are the same

Source from the content-addressed store, hash-verified

172 }
173 /// Check whether two solutions are the same
174 bool same(const Hamming& s) const {
175 for (int i=0; i<x.size(); i++) {
176 SetVarGlbRanges a(x[i]), b(s.x[i]);
177 if (!Iter::Ranges::equal(a,b))
178 return false;
179 }
180 return true;
181 }
182 /// Return increment for node stop
183 static unsigned int nodeinc(void) {
184 return 35;

Callers

nothing calls this directly

Calls 2

equalFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected