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

Function hasType

gecode/minimodel/int-arith.cpp:289–293  ·  view source on GitHub ↗

Check if \a e is of type \a t

Source from the content-addressed store, hash-verified

287 };
288 /// Check if \a e is of type \a t
289 bool hasType(const LinIntExpr& e, ArithNonLinIntExpr::ArithNonLinIntExprType t) {
290 return e.nle() &&
291 dynamic_cast<ArithNonLinIntExpr*>(e.nle()) != nullptr &&
292 dynamic_cast<ArithNonLinIntExpr*>(e.nle())->t == t;
293 }
294
295}}
296

Callers 3

absFunction · 0.70
minFunction · 0.70
maxFunction · 0.70

Calls 1

nleMethod · 0.80

Tested by

no test coverage detected