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

Method getVarName

gecode/flatzinc/ast.hh:409–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 }
408
409 inline std::string
410 Node::getVarName(void) {
411 if (Var* a = dynamic_cast<Var*>(this))
412 return a->n;
413 throw TypeError("variable expected");
414 }
415 inline int
416 Node::getIntVar(void) {
417 if (IntVar* a = dynamic_cast<IntVar*>(this))

Callers 1

createBranchersMethod · 0.80

Calls 1

TypeErrorFunction · 0.85

Tested by

no test coverage detected