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

Function ite

gecode/set/bool.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace Gecode {
37
38 void
39 ite(Home home, BoolVar b, SetVar x, SetVar y, SetVar z) {
40 GECODE_POST;
41 IntVar i(home,0,1);
42 channel(home, b, i);
43 SetVarArgs yx(2);
44 yx[0]=y; yx[1]=x;
45 element(home, yx, i, z);
46 }
47
48}
49

Callers 3

postMethod · 0.50
postMethod · 0.50
postMethod · 0.50

Calls 2

channelFunction · 0.70
elementFunction · 0.70

Tested by

no test coverage detected