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

Method getBoolVar

gecode/flatzinc/ast.hh:421–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419 throw TypeError("integer variable expected");
420 }
421 inline int
422 Node::getBoolVar(void) {
423 if (BoolVar* a = dynamic_cast<BoolVar*>(this))
424 return a->i;
425 throw TypeError("bool variable expected");
426 }
427 inline int
428 Node::getFloatVar(void) {
429 if (FloatVar* a = dynamic_cast<FloatVar*>(this))

Callers 8

yyparseFunction · 0.80
createBranchersMethod · 0.80
arg2boolvarargsMethod · 0.80
arg2BoolVarMethod · 0.80
printElemMethod · 0.80
printElemDiffMethod · 0.80
p_bool_l_impFunction · 0.80
p_bool2intFunction · 0.80

Calls 1

TypeErrorFunction · 0.85

Tested by

no test coverage detected