| 1262 | } |
| 1263 | |
| 1264 | MP_Constraint * |
| 1265 | Domain::removeMP_Constraint(int tag) |
| 1266 | { |
| 1267 | // remove the object from the container |
| 1268 | TaggedObject *mc = theMPs->removeComponent(tag); |
| 1269 | |
| 1270 | // if not there return 0 |
| 1271 | if (mc == 0) |
| 1272 | return 0; |
| 1273 | |
| 1274 | // mark the domain as having changed |
| 1275 | this->domainChange(); |
| 1276 | |
| 1277 | // perform a downward cast, set the objects domain pointer to 0 |
| 1278 | // and return the result of the cast |
| 1279 | MP_Constraint *result = (MP_Constraint *)mc; |
| 1280 | // result->setDomain(0); |
| 1281 | return result; |
| 1282 | } |
| 1283 | |
| 1284 | |
| 1285 | int |
no test coverage detected