| 1016 | |
| 1017 | |
| 1018 | Element * |
| 1019 | Domain::removeElement(int tag) |
| 1020 | { |
| 1021 | // remove the object from the container |
| 1022 | TaggedObject *mc = theElements->removeComponent(tag); |
| 1023 | |
| 1024 | // if not there return 0 |
| 1025 | if (mc == 0) |
| 1026 | return 0; |
| 1027 | |
| 1028 | // otherwise mark the domain as having changed |
| 1029 | this->domainChange(); |
| 1030 | |
| 1031 | // perform a downward cast to an Element (safe as only Element added to |
| 1032 | // this container, 0 the Elements DomainPtr and return the result of the cast |
| 1033 | Element *result = (Element *)mc; |
| 1034 | // result->setDomain(0); |
| 1035 | return result; |
| 1036 | } |
| 1037 | |
| 1038 | Node * |
| 1039 | Domain::removeNode(int tag) |
nothing calls this directly
no test coverage detected