| 1390 | //----------------------------------------------------------------------------- |
| 1391 | |
| 1392 | bool SimObject::addToSet(SimObjectId spid) |
| 1393 | { |
| 1394 | if (mFlags.test(Added) == false) |
| 1395 | return false; |
| 1396 | |
| 1397 | SimObject* ptr = Sim::findObject(spid); |
| 1398 | if (ptr) |
| 1399 | { |
| 1400 | SimSet* sp = dynamic_cast<SimSet*>(ptr); |
| 1401 | AssertFatal(sp != 0, |
| 1402 | "SimObject::addToSet: " |
| 1403 | "ObjectId does not refer to a set object"); |
| 1404 | sp->addObject(this); |
| 1405 | return true; |
| 1406 | } |
| 1407 | return false; |
| 1408 | } |
| 1409 | |
| 1410 | //----------------------------------------------------------------------------- |
| 1411 |
nothing calls this directly
no test coverage detected