| 177 | } |
| 178 | |
| 179 | void Strategy::detach(Strategy son) { |
| 180 | |
| 181 | vector<Strategy>::iterator it = imp->nodes.begin(); |
| 182 | while (it != (imp->nodes.end()) && ( (*it).id() != son.id())) { |
| 183 | it++;} |
| 184 | if ( it != imp->nodes.end()) { |
| 185 | todosUpdate(0-((*it).imp->todos)); |
| 186 | (*it).imp->father=NULL; |
| 187 | imp->nodes.erase(it); |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | |
| 192 | void Strategy::detach(unsigned int i) { |
no test coverage detected