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

Method add

gecode/int/member/prop.hpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44 template<class View>
45 forceinline void
46 Prop<View>::add(Space& home, ValSet& vs, ViewArray<View>& x) {
47 int n=x.size();
48 for (int i=n; i--; )
49 if (x[i].assigned()) {
50 vs.add(home, x[i].val());
51 x[i] = x[--n];
52 }
53 x.size(n);
54 }
55
56 template<class View>
57 forceinline void

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
assignedMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected