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

Function branch

gecode/set/branch.cpp:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace Gecode {
37
38 void
39 branch(Home home, const SetVarArgs& x,
40 SetVarBranch vars, SetValBranch vals,
41 SetBranchFilter bf,
42 SetVarValPrint vvp) {
43 using namespace Set;
44 if (home.failed()) return;
45 vars.expand(home,x);
46 ViewArray<SetView> xv(home,x);
47 ViewSel<SetView>* vs[1] = {
48 Branch::viewsel(home,vars)
49 };
50 postviewvalbrancher<SetView,1,int,2>
51 (home,xv,vs,Branch::valselcommit(home,vals),bf,vvp);
52 }
53
54 void
55 branch(Home home, const SetVarArgs& x,

Callers

nothing calls this directly

Calls 6

SET_VAR_NONEFunction · 0.85
viewselFunction · 0.50
valselcommitFunction · 0.50
failedMethod · 0.45
expandMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected