| 73 | } |
| 74 | |
| 75 | void Structure::addChildren(NodeID nid, int kids) |
| 76 | { |
| 77 | if (nodes_[nid]->childrenCount() > 0) |
| 78 | throw; |
| 79 | |
| 80 | nodes_[nid]->setNumberOfChildren(kids); |
| 81 | |
| 82 | for (auto i = 0; i < kids; ++i) |
| 83 | { |
| 84 | createChild(nid, i, 0); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | /// Remove `alt` child of `pid` |
| 89 | void Structure::removeChild(NodeID pid, int alt) |
no test coverage detected