| 1536 | //----------------------------------------------------------------------------- |
| 1537 | |
| 1538 | bool SimObject::addToSet(SimObjectId spid) |
| 1539 | { |
| 1540 | if (mFlags.test(Added) == false) |
| 1541 | return false; |
| 1542 | |
| 1543 | SimObject* ptr = Sim::findObject(spid); |
| 1544 | if (ptr) |
| 1545 | { |
| 1546 | SimSet* sp = dynamic_cast<SimSet*>(ptr); |
| 1547 | AssertFatal(sp != 0, |
| 1548 | "SimObject::addToSet: " |
| 1549 | "ObjectId does not refer to a set object"); |
| 1550 | sp->addObject(this); |
| 1551 | return true; |
| 1552 | } |
| 1553 | return false; |
| 1554 | } |
| 1555 | |
| 1556 | //----------------------------------------------------------------------------- |
| 1557 |
nothing calls this directly
no test coverage detected