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

Method includeI

gecode/set/var-imp/set.hpp:291–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 }
290
291 template<class I> forceinline ModEvent
292 SetVarImp::includeI(Space& home, I& iterator) {
293 if (!iterator()) {
294 return ME_SET_NONE;
295 }
296 if (assigned()) {
297 BndSetRanges lbi(glb);
298 Iter::Ranges::Diff<I,BndSetRanges>
299 probe(iterator,lbi);
300 return probe() ? fail(home) : ME_SET_NONE;
301 }
302 int mi=iterator.min();
303 int ma=iterator.max();
304 ++iterator;
305 if (iterator())
306 return includeI_full(home, mi, ma, iterator);
307 else
308 return include(home, mi, ma);
309 }
310
311 template<class I>
312 ModEvent

Callers 1

includeI_fullMethod · 0.45

Calls 4

assignedFunction · 0.85
includeFunction · 0.85
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected