| 1127 | } |
| 1128 | |
| 1129 | Pressure_Constraint * |
| 1130 | Domain::removePressure_Constraint(int tag) |
| 1131 | { |
| 1132 | // remove the object from the container |
| 1133 | TaggedObject *mc = thePCs->removeComponent(tag); |
| 1134 | |
| 1135 | // if not there return 0 |
| 1136 | if (mc == 0) |
| 1137 | return 0; |
| 1138 | |
| 1139 | // mark the domain as having changed |
| 1140 | this->domainChange(); |
| 1141 | |
| 1142 | // perform a downward cast, set the objects domain pointer to 0 |
| 1143 | // and return the result of the cast |
| 1144 | Pressure_Constraint *result = (Pressure_Constraint *)mc; |
| 1145 | // result->setDomain(0); |
| 1146 | |
| 1147 | // should check that theLoad and result are the same |
| 1148 | return result; |
| 1149 | } |
| 1150 | |
| 1151 | MP_Constraint * |
| 1152 | Domain::removeMP_Constraint(int tag) |
nothing calls this directly
no test coverage detected