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

Method post

test/set/channel.cpp:163–168  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

161 }
162 /// Post constraint on \a x
163 virtual void post(Space& home, SetVarArray& x, IntVarArray& y) {
164 BoolVarArgs b(y.size());
165 for (int i=y.size(); i--;)
166 b[i] = channel(home, y[i]);
167 Gecode::channel(home, b, x[0]);
168 }
169 };
170
171 ChannelBool _channelbool1("Channel::Bool::1", d2, 3);

Callers

nothing calls this directly

Calls 2

channelFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected