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

Method equal

gecode/int/extensional/tuple-set.cpp:447–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 }
446
447 bool
448 TupleSet::equal(const TupleSet& t) const {
449 assert(tuples() == t.tuples());
450 assert(arity() == t.arity());
451 assert(min() == t.min());
452 assert(max() == t.max());
453 for (int i=0; i<tuples(); i++)
454 for (int j=0; j<arity(); j++)
455 if ((*this)[i][j] != t[i][j])
456 return false;
457 return true;
458 }
459
460 void
461 TupleSet::_add(const IntArgs& t) {

Callers

nothing calls this directly

Calls 7

arityFunction · 0.85
tuplesMethod · 0.80
arityMethod · 0.80
minFunction · 0.50
maxFunction · 0.50
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected