- Timestamp:
- Dec 22, 2009, 10:05:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/ClassTreeMask.cc
r6394 r6400 850 850 // If there is a first subclass, move the object-iterator to the first object of this class. Else go to the end 851 851 if (this->subclassIterator_ != this->subclasses_.end()) 852 this->objectIterator_ = (*this->subclassIterator_).first->getObjects()->begin();852 this->objectIterator_ = this->subclassIterator_->first->getObjects()->begin(); 853 853 else 854 854 this->objectIterator_ = ObjectList<BaseObject>::end(); 855 855 856 856 // Check if the iterator points on a valid object. If not, go to the next object by calling ++ 857 if (!this->objectIterator_ || ( (*this->subclassIterator_).second && !this->objectIterator_->isExactlyA((*this->subclassIterator_).first)))857 if (!this->objectIterator_ || (this->subclassIterator_->second && !this->objectIterator_->isExactlyA(this->subclassIterator_->first))) 858 858 this->operator++(); 859 859 … … 882 882 // Check if there really is a next class. If yes, move the object-iterator to the first object 883 883 if (this->subclassIterator_ != this->subclasses_.end()) 884 this->objectIterator_ = (*this->subclassIterator_).first->getObjects()->begin();884 this->objectIterator_ = this->subclassIterator_->first->getObjects()->begin(); 885 885 else 886 886 return (*this); … … 888 888 889 889 // Repeat this until we reach a valid object or the end 890 } while ( (*this->subclassIterator_).second && !this->objectIterator_->isExactlyA((*this->subclassIterator_).first));890 } while (this->subclassIterator_->second && !this->objectIterator_->isExactlyA(this->subclassIterator_->first)); 891 891 } 892 892 return (*this);
Note: See TracChangeset
for help on using the changeset viewer.