| 166 | } |
| 167 | |
| 168 | forceinline int |
| 169 | SpaceNode::getAlternative(const NodeAllocator& na) const { |
| 170 | SpaceNode* p = getParent(na); |
| 171 | if (p == nullptr) |
| 172 | return -1; |
| 173 | for (int i=static_cast<int>(p->getNumberOfChildren()); i--;) |
| 174 | if (p->getChild(na,i) == this) |
| 175 | return i; |
| 176 | GECODE_NEVER; |
| 177 | return -1; |
| 178 | } |
| 179 | |
| 180 | forceinline const Choice* |
| 181 | SpaceNode::getChoice(void) { |
no test coverage detected