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

Method add

gecode/int/nvalues/int-base.hpp:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66 template<class VY>
67 void
68 IntBase<VY>::add(Space& home) {
69 int n=x.size();
70 for (int i=n; i--; )
71 if (x[i].assigned()) {
72 vs.add(home, x[i].val());
73 x[i] = x[--n];
74 }
75 x.size(n);
76 }
77
78 template<class VY>
79 void

Callers 3

postMethod · 0.45
postMethod · 0.45
postMethod · 0.45

Calls 3

sizeMethod · 0.45
assignedMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected