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

Function cardinality

gecode/set/cardinality.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace Gecode {
42
43 void
44 cardinality(Home home, SetVar x, unsigned int i, unsigned int j) {
45 Set::Limits::check(i, "Set::cardinality");
46 Set::Limits::check(j, "Set::cardinality");
47 GECODE_POST;
48 Set::SetView _x(x);
49 GECODE_ME_FAIL(_x.cardMin(home, i));
50 GECODE_ME_FAIL(_x.cardMax(home, j));
51 }
52
53 void
54 cardinality(Home home, const SetVarArgs& x, unsigned int i, unsigned int j) {

Callers 15

reminFunction · 0.70
remaxFunction · 0.70
relFunction · 0.70
HammingMethod · 0.50
setupMethod · 0.50
setupMethod · 0.50
cardinalityMethod · 0.50
pruneMethod · 0.50
disabledMethod · 0.50
postMethod · 0.50
postMethod · 0.50
HammingMethod · 0.50

Calls 6

relFunction · 0.70
checkFunction · 0.50
postFunction · 0.50
cardMinMethod · 0.45
cardMaxMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected