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

Method print

gecode/int/branch/cbs.hpp:229–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228 template<class View>
229 forceinline void
230 CBSBrancher<View>::print(const Space&, const Choice& c, unsigned int a,
231 std::ostream& o) const {
232 const auto& pvc = static_cast<const PosValChoice<int>&>(c);
233 int pos=pvc.pos().pos, val=pvc.val();
234 if (a == 0)
235 o << "x[" << pos << "] = " << val;
236 else
237 o << "x[" << pos << "] != " << val;
238 }
239
240}}}
241

Callers

nothing calls this directly

Calls 2

posMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected