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

Method solutions

test/search.cpp:245–255  ·  view source on GitHub ↗

Return number of solutions

Source from the content-addressed store, hash-verified

243 }
244 /// Return number of solutions
245 virtual int solutions(void) const {
246 if (htb1 == HTB_NONE) {
247 assert((htb2 == HTB_NONE) && (htb3 == HTB_NONE));
248 return 1;
249 }
250 if ((htb1 == HTB_UNARY) || (htb2 == HTB_UNARY))
251 return 0;
252 if (htb3 == HTB_UNARY)
253 return 4;
254 return 8;
255 }
256 /// Verify that this is best solution
257 virtual bool best(void) const {
258 if ((htb1 == HTB_NONE) || (htb2 == HTB_NONE) || (htb3 == HTB_NONE) ||

Callers 5

runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected