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

Method expand

gecode/set/branch/var.hpp:73–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 forceinline void
74 SetVarBranch::expand(Home home, const SetVarArgs& x) {
75 switch (select()) {
76 case SEL_AFC_MIN: case SEL_AFC_MAX:
77 case SEL_AFC_SIZE_MIN: case SEL_AFC_SIZE_MAX:
78 if (!_afc)
79 _afc = SetAFC(home,x,decay());
80 break;
81 case SEL_ACTION_MIN: case SEL_ACTION_MAX:
82 case SEL_ACTION_SIZE_MIN: case SEL_ACTION_SIZE_MAX:
83 if (!_act)
84 _act = SetAction(home,x,decay());
85 break;
86 case SEL_CHB_MIN: case SEL_CHB_MAX:
87 case SEL_CHB_SIZE_MIN: case SEL_CHB_SIZE_MAX:
88 if (!_chb)
89 _chb = SetCHB(home,x);
90 break;
91 default: ;
92 }
93 }
94
95 inline SetVarBranch
96 SET_VAR_NONE(void) {

Callers 3

branchFunction · 0.45
branchFunction · 0.45
assignFunction · 0.45

Calls 3

SetAFCClass · 0.85
SetActionClass · 0.85
SetCHBClass · 0.85

Tested by

no test coverage detected