- Timestamp:
- Mar 29, 2013, 2:33:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/object/IteratorBase.h
r9598 r9599 47 47 */ 48 48 template <class T, class I> 49 class IteratorBase 49 class IteratorBase : public ObjectListElementRemovalListener 50 50 { 51 51 public: … … 169 169 170 170 /** 171 @brief Increments the Iterator if it points at the given object.171 @brief Increments the Iterator if it points at the given element. 172 172 @param object The object to compare with 173 173 */ 174 inline void incrementIfEqual(Listable* object)175 { 176 if (this->element_ && this->element_->objectBase_ == object)174 virtual void removedElement(ObjectListBaseElement* element) 175 { 176 if (this->element_ == element) 177 177 this->operator++(); 178 178 } … … 194 194 { 195 195 this->list_ = this->element_->list_; 196 this->list_->register Iterator(this);196 this->list_->registerRemovalListener(this); 197 197 } 198 198 else … … 206 206 { 207 207 if (this->list_) 208 this->list_->unregister Iterator(this);208 this->list_->unregisterRemovalListener(this); 209 209 } 210 210
Note: See TracChangeset
for help on using the changeset viewer.