MCPcopy Create free account
hub / github.com/Gecode/gecode / operator +

Function operator +

gecode/minimodel/float-expr.cpp:398–404  ·  view source on GitHub ↗

* Operators * */

Source from the content-addressed store, hash-verified

396 *
397 */
398 LinFloatExpr
399 operator +(const FloatVal& c, const FloatVar& x) {
400 if (x.assigned() && Float::Limits::valid(c+x.val()))
401 return LinFloatExpr(c+x.val());
402 else
403 return LinFloatExpr(x,LinFloatExpr::NT_ADD,c);
404 }
405 LinFloatExpr
406 operator +(const FloatVal& c, const LinFloatExpr& e) {
407 return LinFloatExpr(e,LinFloatExpr::NT_ADD,c);

Callers

nothing calls this directly

Calls 4

validFunction · 0.85
LinFloatExprClass · 0.85
assignedMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected