| 252 | } |
| 253 | |
| 254 | void |
| 255 | LoadPattern::setDomain(Domain *theDomain) |
| 256 | { |
| 257 | // if subclass does not implement .. check for 0 pointer |
| 258 | if (theNodalLoads != 0) { |
| 259 | NodalLoad *nodLoad; |
| 260 | NodalLoadIter &theNodalIter = this->getNodalLoads(); |
| 261 | while ((nodLoad = theNodalIter()) != 0) |
| 262 | nodLoad->setDomain(theDomain); |
| 263 | |
| 264 | ElementalLoad *eleLoad; |
| 265 | ElementalLoadIter &theElementalIter = this->getElementalLoads(); |
| 266 | while ((eleLoad = theElementalIter()) != 0) |
| 267 | eleLoad->setDomain(theDomain); |
| 268 | |
| 269 | SP_Constraint *theSP; |
| 270 | SP_ConstraintIter &theSpConstraints = this->getSPs(); |
| 271 | while ((theSP = theSpConstraints()) != 0) |
| 272 | theSP->setDomain(theDomain); |
| 273 | } |
| 274 | |
| 275 | // now we set this load patterns domain |
| 276 | this->DomainComponent::setDomain(theDomain); |
| 277 | } |
| 278 | |
| 279 | |
| 280 |
no outgoing calls
no test coverage detected