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

Method in

test/set/rel.cpp:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 return u() ? u.min() : Gecode::Set::Limits::max+1;
76 }
77 bool in(int i, CountableSetRanges& c, bool eq=false) const {
78 if (eq && i==Gecode::Set::Limits::max+1)
79 return true;
80 Iter::Ranges::Singleton s(i,i);
81 return Iter::Ranges::subset(s,c);
82 }
83 /// %Test whether \a x is solution
84 bool solution(const SetAssignment& x) const {
85 int x1 = shared ? x[0] : x[1];

Callers 3

solutionMethod · 0.45
solutionMethod · 0.45
runMethod · 0.45

Calls 1

subsetFunction · 0.50

Tested by

no test coverage detected