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

Method expand

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

Source from the content-addressed store, hash-verified

71 }
72
73 forceinline void
74 IntVarBranch::expand(Home home, const IntVarArgs& 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 = IntAFC(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 = IntAction(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 = IntCHB(home,x);
90 break;
91 default: ;
92 }
93 }
94
95 inline IntVarBranch
96 INT_VAR_NONE(void) {

Callers 3

branchFunction · 0.45
branchFunction · 0.45
assignFunction · 0.45

Calls 6

IntAFCClass · 0.85
IntActionClass · 0.85
IntCHBClass · 0.85
BoolAFCClass · 0.85
BoolActionClass · 0.85
BoolCHBClass · 0.85

Tested by

no test coverage detected