| 1144 | } |
| 1145 | |
| 1146 | Node * |
| 1147 | Domain::removeNode(int tag) |
| 1148 | { |
| 1149 | // remove the object from the container |
| 1150 | TaggedObject *mc = theNodes->removeComponent(tag); |
| 1151 | |
| 1152 | // if not there return 0 |
| 1153 | if (mc == 0) |
| 1154 | return 0; |
| 1155 | |
| 1156 | // mark the domain has having changed |
| 1157 | this->domainChange(); |
| 1158 | |
| 1159 | // adjust node bounds |
| 1160 | resetBounds = true; |
| 1161 | |
| 1162 | // perform a downward cast to a Node (safe as only Node added to |
| 1163 | // this container and return the result of the cast |
| 1164 | Node *result = (Node *)mc; |
| 1165 | // result->setDomain(0); |
| 1166 | |
| 1167 | |
| 1168 | return result; |
| 1169 | } |
| 1170 | |
| 1171 | |
| 1172 | int |
no test coverage detected