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

Method update

gecode/int/linear/bool-scale.hpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 f->x.reschedule(home,p,PC_BOOL_VAL);
65 }
66 forceinline void
67 ScaleBoolArray::update(Space& home, ScaleBoolArray& sba) {
68 int n = static_cast<int>(sba._lst - sba._fst);
69 if (n > 0) {
70 _fst = home.alloc<ScaleBool>(n);
71 _lst = _fst+n;
72 for (int i=0; i<n; i++) {
73 _fst[i].a = sba._fst[i].a;
74 _fst[i].x.update(home,sba._fst[i].x);
75 }
76 } else {
77 _fst = _lst = nullptr;
78 }
79 }
80 forceinline ScaleBool*
81 ScaleBoolArray::fst(void) const {
82 return _fst;

Callers 7

int-bin.hppFile · 0.45
bool-int.hppFile · 0.45
int-ter.hppFile · 0.45
bool-scale.hppFile · 0.45
bool-view.hppFile · 0.45
int-nary.hppFile · 0.45
Lin<Val,P,N,pc>Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected