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

Method includeI

gecode/set/view/singleton.hpp:204–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203
204 template<class I> ModEvent
205 SingletonView::includeI(Space& home, I& iter) {
206 if (!iter())
207 return ME_SET_NONE;
208
209 if (iter.min()!=iter.max())
210 return ME_SET_FAILED;
211
212 int val = iter.min();
213 ++iter;
214 if ( iter() )
215 return ME_SET_FAILED;
216
217 return me_inttoset(x.eq(home, val));
218 }
219
220 template<class I> ModEvent
221 SingletonView::intersectI(Space& home, I& iter) {

Callers

nothing calls this directly

Calls 3

minMethod · 0.45
maxMethod · 0.45
eqMethod · 0.45

Tested by

no test coverage detected