MP_Constraint * SingleDomMP_Iter::operator()(void) { // check if we still have MP_Constraints in the model // if not return 0, indicating we are done TaggedObject *theComponent = myIter(); if (theComponent == 0) return 0; else { MP_Constraint *result = (MP_Constraint *)theComponent; return result; } }
NodalLoad * NodalLoadIter::operator()(void) { // check if we still have elements in the model // if not return 0, indicating we are done TaggedObject *theComponent = myIter(); if (theComponent == 0) return 0; else { NodalLoad *result = (NodalLoad *)theComponent; return result; } }
PerformanceFunction * PerformanceFunctionIter::operator()(void) { // check if we still have elements in the model // if not return 0, indicating we are done TaggedObject *theComponent = myIter(); if (theComponent == 0) return 0; else { PerformanceFunction *result = (PerformanceFunction *)theComponent; return result; } }
Parameter * SingleDomParamIter::operator()(void) { // check if we still have parameters in the model // if not return 0, indicating we are done TaggedObject *theComponent = myIter(); if (theComponent == 0) return 0; else { Parameter *result = (Parameter *)theComponent; return result; } }
Subdomain * PartitionedDomainSubIter::operator()(void) { // check if we still have Subdomains in the model // if not return 0, indicating we are done TaggedObject *theComponent = myIter(); if (theComponent == 0) return 0; else { Subdomain *result = (Subdomain *)theComponent; return result; } }
/*! Reloads associated Python scripts */ void cContextMenu::recreateEvents() { scriptChain_.clear(); // Walk the eventList and recreate QStringList eventList = QStringList::split( ",", scripts_ ); QStringList::const_iterator myIter( eventList.begin() ); for ( ; myIter != eventList.end(); ++myIter ) { cPythonScript* myScript = ScriptManager::instance()->find( ( *myIter ).latin1() ); // Script not found if ( myScript == NULL ) continue; scriptChain_.append( myScript ); } }
bool SkClipStack::operator==(const SkClipStack& b) const { if (fSaveCount != b.fSaveCount || fDeque.count() != b.fDeque.count()) { return false; } SkDeque::F2BIter myIter(fDeque); SkDeque::F2BIter bIter(b.fDeque); const Rec* myRec = (const Rec*)myIter.next(); const Rec* bRec = (const Rec*)bIter.next(); while (myRec != NULL && bRec != NULL) { if (*myRec != *bRec) { return false; } myRec = (const Rec*)myIter.next(); bRec = (const Rec*)bIter.next(); } return myRec == NULL && bRec == NULL; }
bool SkClipStack::operator==(const SkClipStack& b) const { if (this->getTopmostGenID() == b.getTopmostGenID()) { return true; } if (fSaveCount != b.fSaveCount || fDeque.count() != b.fDeque.count()) { return false; } SkDeque::F2BIter myIter(fDeque); SkDeque::F2BIter bIter(b.fDeque); const Element* myElement = (const Element*)myIter.next(); const Element* bElement = (const Element*)bIter.next(); while (myElement != nullptr && bElement != nullptr) { if (*myElement != *bElement) { return false; } myElement = (const Element*)myIter.next(); bElement = (const Element*)bIter.next(); } return myElement == nullptr && bElement == nullptr; }