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

Method print

examples/golf.cpp:201–209  ·  view source on GitHub ↗

Print solution

Source from the content-addressed store, hash-verified

199
200 /// Print solution
201 virtual void
202 print(std::ostream& os) const {
203 os << "Tournament plan" << std::endl;
204 Matrix<SetVarArray> schedule(groups,g,w);
205 for (int j=0; j<w; j++) {
206 os << "Week " << j << ": " << std::endl << " ";
207 os << schedule.row(j) << std::endl;
208 }
209 }
210
211 /// Constructor for copying \a s
212 Golf(Golf& s) : Script(s), g(s.g), s(s.s), w(s.w) {

Callers

nothing calls this directly

Calls 1

rowMethod · 0.45

Tested by

no test coverage detected