| 162 | } |
| 163 | |
| 164 | void Strategy::attach(Strategy child) { |
| 165 | if (child.isDummy()) { |
| 166 | int todosToAdd = 0; |
| 167 | |
| 168 | for (int i=0;i<child.degree();i++) { |
| 169 | this->attach(child.getChild(i)); |
| 170 | } |
| 171 | } |
| 172 | else { |
| 173 | imp->nodes.push_back(child); |
| 174 | todosUpdate(child.imp->todos); |
| 175 | (child.imp)->father = this->imp; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | void Strategy::detach(Strategy son) { |
| 180 |
no test coverage detected