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

Function printFloatVar

gecode/flatzinc/flatzinc.cpp:1796–1803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1794 }
1795#ifdef GECODE_HAS_FLOAT_VARS
1796 void printFloatVar(std::ostream& os, const std::string name, const Float::FloatView& f) {
1797 os << "var ";
1798 if(f.assigned())
1799 os << "float: " << name << " = " << f.med() << ";";
1800 else
1801 os << f.min() << ".." << f.max() << ": " << name << ";";
1802 os << "\n";
1803 }
1804#endif
1805 std::string FlatZincSpace::getDomains(const Printer& p) const {
1806 std::ostringstream oss;

Callers 1

getDomainsMethod · 0.85

Calls 4

assignedMethod · 0.45
medMethod · 0.45
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected