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

Method print

examples/hamming.cpp:114–119  ·  view source on GitHub ↗

Print solution

Source from the content-addressed store, hash-verified

112
113 /// Print solution
114 virtual void
115 print(std::ostream& os) const {
116 for (int i=0; i<x.size(); i++) {
117 os << "\t[" << i << "] = " << x[i] << std::endl;
118 }
119 }
120
121 /// Constructor for copying \a s
122 Hamming(Hamming& s) : Script(s) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected