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

Method getFloatVar

gecode/flatzinc/ast.hh:427–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425 throw TypeError("bool variable expected");
426 }
427 inline int
428 Node::getFloatVar(void) {
429 if (FloatVar* a = dynamic_cast<FloatVar*>(this))
430 return a->i;
431 throw TypeError("integer variable expected");
432 }
433 inline int
434 Node::getSetVar(void) {
435 if (SetVar* a = dynamic_cast<SetVar*>(this))

Callers 6

yyparseFunction · 0.80
createBranchersMethod · 0.80
arg2floatvarargsMethod · 0.80
arg2FloatVarMethod · 0.80
printElemMethod · 0.80
printElemDiffMethod · 0.80

Calls 1

TypeErrorFunction · 0.85

Tested by

no test coverage detected