| 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)) |
no test coverage detected