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

Method assigned_val

gecode/int/element/int.hpp:266–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264
265 template<class V0, class V1, class Idx, class Val>
266 ExecStatus
267 Int<V0,V1,Idx,Val>::assigned_val(Space& home, IntSharedArray& c,
268 V0 x0, V1 x1) {
269 Region r;
270 int* v = r.alloc<int>(x0.size());
271 int n = 0;
272 for (ViewValues<V0> i(x0); i(); ++i)
273 if (c[i.val()] != x1.val())
274 v[n++]=i.val();
275 Iter::Values::Array iv(v,n);
276 GECODE_ME_CHECK(x0.minus_v(home,iv,false));
277 return ES_OK;
278 }
279
280 template<class V0, class V1, class Idx, class Val>
281 ExecStatus

Callers

nothing calls this directly

Calls 4

iFunction · 0.50
sizeMethod · 0.45
valMethod · 0.45
minus_vMethod · 0.45

Tested by

no test coverage detected