Changeset 1634 for code/branches/gcc43/src/core/ObjectList.h
- Timestamp:
- Jun 29, 2008, 7:36:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gcc43/src/core/ObjectList.h
r1543 r1634 94 94 95 95 /** @brief Returns the first element in the list. @return The first element */ 96 inlinestatic Iterator<T> start()96 static Iterator<T> start() 97 97 { return Iterator<T>(ClassIdentifier<T>::getIdentifier()->getObjects()->first_); } 98 98 99 99 /** @brief Returns the first element in the list. @return The first element */ 100 inlinestatic Iterator<T> begin()100 static Iterator<T> begin() 101 101 { return Iterator<T>(ClassIdentifier<T>::getIdentifier()->getObjects()->first_); } 102 102 103 103 /** @brief Returns the last element in the list. @return The last element */ 104 inlinestatic Iterator<T> end()104 static Iterator<T> end() 105 105 { return Iterator<T>(ClassIdentifier<T>::getIdentifier()->getObjects()->last_); } 106 106 107 inlinevoid registerIterator(Iterator<T>* iterator)107 void registerIterator(Iterator<T>* iterator) 108 108 { this->iterators_.insert(this->iterators_.end(), (void*)iterator); } 109 inlinevoid unregisterIterator(Iterator<T>* iterator)109 void unregisterIterator(Iterator<T>* iterator) 110 110 { this->iterators_.erase((void*)iterator); } 111 111 void notifyIterators(ObjectListElement<T>* element);
Note: See TracChangeset
for help on using the changeset viewer.