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

Method getIntVar

gecode/flatzinc/ast.hh:415–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413 throw TypeError("variable expected");
414 }
415 inline int
416 Node::getIntVar(void) {
417 if (IntVar* a = dynamic_cast<IntVar*>(this))
418 return a->i;
419 throw TypeError("integer variable expected");
420 }
421 inline int
422 Node::getBoolVar(void) {
423 if (BoolVar* a = dynamic_cast<BoolVar*>(this))

Callers 11

yyparseFunction · 0.80
createBranchersMethod · 0.80
arg2intvarargsMethod · 0.80
arg2boolvarargsMethod · 0.80
arg2IntVarMethod · 0.80
isBoolArrayMethod · 0.80
printElemMethod · 0.80
printElemDiffMethod · 0.80
p_bool_lin_CMPFunction · 0.80
p_bool_lin_CMP_reifFunction · 0.80
p_bool2intFunction · 0.80

Calls 1

TypeErrorFunction · 0.85

Tested by

no test coverage detected