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

Method getBool

gecode/flatzinc/ast.hh:445–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443 throw TypeError("integer literal expected");
444 }
445 inline bool
446 Node::getBool(void) {
447 if (BoolLit* a = dynamic_cast<BoolLit*>(this))
448 return a->b;
449 throw TypeError("bool literal expected");
450 }
451 inline double
452 Node::getFloat(void) {
453 if (FloatLit* a = dynamic_cast<FloatLit*>(this))

Callers 12

yyparseFunction · 0.80
arg2boolargsMethod · 0.80
arg2boolvarargsMethod · 0.80
arg2BoolVarMethod · 0.80
printElemMethod · 0.80
printElemDiffMethod · 0.80
p_int_CMP_reifFunction · 0.80
p_int_lin_CMP_reifFunction · 0.80
p_bool_lin_CMP_reifFunction · 0.80
p_bool_l_impFunction · 0.80
p_cumulativesFunction · 0.80
p_among_seq_boolFunction · 0.80

Calls 1

TypeErrorFunction · 0.85

Tested by

no test coverage detected