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

Method eq

gecode/float/var-imp/float.hpp:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182
183
184 forceinline ModEvent
185 FloatVarImp::eq(Space& home, FloatNum n) {
186 if (!dom.in(n))
187 return fail(home);
188 if (assigned())
189 return ME_FLOAT_NONE;
190 FloatDelta d;
191 dom = n;
192 return notify(home,ME_FLOAT_VAL,d);
193 }
194 forceinline ModEvent
195 FloatVarImp::eq(Space& home, const FloatVal& n) {
196 if (!overlap(dom,n))

Callers

nothing calls this directly

Calls 5

assignedFunction · 0.85
overlapFunction · 0.50
subsetFunction · 0.50
intersectFunction · 0.50
inMethod · 0.45

Tested by

no test coverage detected