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

Method update

gecode/kernel/data/array.hpp:1022–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020
1021 template<class Var>
1022 forceinline void
1023 VarArray<Var>::update(Space& home, VarArray<Var>& a) {
1024 n = a.n;
1025 if (n > 0) {
1026 x = home.alloc<Var>(n);
1027 for (int i=0; i<n; i++)
1028 x[i].update(home, a.x[i]);
1029 } else {
1030 x = nullptr;
1031 }
1032 }
1033
1034 template<class Var>
1035 forceinline bool

Callers 4

AdvisorFunction · 0.45
PropagatorFunction · 0.45
wait.hppFile · 0.45
recorder.hppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected