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

Method getString

gecode/flatzinc/ast.hh:463–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461 throw TypeError("set literal expected");
462 }
463 inline std::string
464 Node::getString(void) {
465 if (String* a = dynamic_cast<String*>(this))
466 return a->s;
467 throw TypeError("string literal expected");
468 }
469 inline bool
470 Node::isIntVar(void) {
471 return (dynamic_cast<IntVar*>(this) != nullptr);

Callers 3

get_constraint_namesFunction · 0.80
printElemMethod · 0.80
printElemDiffMethod · 0.80

Calls 1

TypeErrorFunction · 0.85

Tested by

no test coverage detected