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

Function assign

gecode/set/branch.cpp:107–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106
107 void
108 assign(Home home, const SetVarArgs& x,
109 SetVarBranch vars, SetAssign vals,
110 SetBranchFilter bf,
111 SetVarValPrint vvp) {
112 using namespace Set;
113 if (home.failed()) return;
114 ViewArray<SetView> xv(home,x);
115 ViewSel<SetView>* vs[1] = {
116 new (home) ViewSelNone<SetView>(home,vars)
117 };
118 postviewvalbrancher<SetView,1,int,1>
119 (home,xv,vs,Branch::valselcommit(home,vals),bf,vvp);
120 }
121
122 void
123 assign(Home home, const SetVarArgs& x,

Callers 9

QueensMethod · 0.50
HammingMethod · 0.50
branchMethod · 0.50
runMethod · 0.50
branchMethod · 0.50
JobShopSolveMethod · 0.50
QueenArmiesMethod · 0.50
MultiBinPackingMethod · 0.50
OpenShopMethod · 0.50

Calls 6

SET_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