| 1036 | } |
| 1037 | |
| 1038 | Node * |
| 1039 | Domain::removeNode(int tag) |
| 1040 | { |
| 1041 | // remove the object from the container |
| 1042 | TaggedObject *mc = theNodes->removeComponent(tag); |
| 1043 | |
| 1044 | // if not there return 0 |
| 1045 | if (mc == 0) |
| 1046 | return 0; |
| 1047 | |
| 1048 | // mark the domain has having changed |
| 1049 | this->domainChange(); |
| 1050 | |
| 1051 | // perform a downward cast to a Node (safe as only Node added to |
| 1052 | // this container and return the result of the cast |
| 1053 | Node *result = (Node *)mc; |
| 1054 | // result->setDomain(0); |
| 1055 | return result; |
| 1056 | } |
| 1057 | |
| 1058 | |
| 1059 | int |
no test coverage detected