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

Method getInt

gecode/flatzinc/ast.hh:439–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 throw TypeError("set variable expected");
438 }
439 inline int
440 Node::getInt(void) {
441 if (IntLit* a = dynamic_cast<IntLit*>(this))
442 return a->i;
443 throw TypeError("integer literal expected");
444 }
445 inline bool
446 Node::getBool(void) {
447 if (BoolLit* a = dynamic_cast<BoolLit*>(this))

Callers 15

yyparseFunction · 0.80
createBranchersMethod · 0.80
arg2intargsMethod · 0.80
arg2intvarargsMethod · 0.80
arg2IntVarMethod · 0.80
p_distinctOffsetFunction · 0.80
p_int_CMPFunction · 0.80
p_int_CMP_reifFunction · 0.80
p_int_lin_CMPFunction · 0.80
p_int_lin_CMP_reifFunction · 0.80
p_bool_lin_CMPFunction · 0.80
p_bool_lin_CMP_reifFunction · 0.80

Calls 1

TypeErrorFunction · 0.85

Tested by

no test coverage detected