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

Function hasType

gecode/minimodel/float-arith.cpp:317–321  ·  view source on GitHub ↗

Check if \a e is of type \a t

Source from the content-addressed store, hash-verified

315 };
316 /// Check if \a e is of type \a t
317 bool hasType(const LinFloatExpr& e, ArithNonLinFloatExpr::ArithNonLinFloatExprType t) {
318 return e.nlfe() &&
319 dynamic_cast<ArithNonLinFloatExpr*>(e.nlfe()) != nullptr &&
320 dynamic_cast<ArithNonLinFloatExpr*>(e.nlfe())->t == t;
321 }
322
323}}
324

Callers 3

absFunction · 0.70
minFunction · 0.70
maxFunction · 0.70

Calls 1

nlfeMethod · 0.80

Tested by

no test coverage detected