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

Function assign

gecode/int/branch.cpp:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145
146 void
147 assign(Home home, const IntVarArgs& x,
148 IntVarBranch vars, IntAssign vals,
149 IntBranchFilter bf,
150 IntVarValPrint vvp) {
151 using namespace Int;
152 if (home.failed()) return;
153 ViewArray<IntView> xv(home,x);
154 ViewSel<IntView>* vs[1] = {
155 new (home) ViewSelNone<IntView>(home,vars)
156 };
157 postviewvalbrancher<IntView,1,int,1>
158 (home,xv,vs,Branch::valselcommit(home,vals),bf,vvp);
159 }
160
161 void
162 branch(Home home, const IntVarArgs& x,

Callers 1

branchFunction · 0.70

Calls 7

INT_VAR_NONEFunction · 0.85
BOOL_VAR_NONEFunction · 0.85
valselcommitFunction · 0.50
viewselFunction · 0.50
failedMethod · 0.45
expandMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected