Changeset 5113 in orxonox.OLD for trunk/src/lib/util
- Timestamp:
- Aug 23, 2005, 11:18:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/list.h
r5111 r5113 135 135 void removeLast(); 136 136 void flush(); 137 T* firstElement() ;138 T* lastElement() ;139 bool isEmpty() ;140 unsigned int getSize() ;137 T* firstElement() const; 138 T* lastElement() const; 139 bool isEmpty() const; 140 unsigned int getSize() const; 141 141 bool inList(T* entity); 142 tIterator<T>* getIterator() ;142 tIterator<T>* getIterator() const; 143 143 T* nextElement(T* toEntity); 144 144 T* toArray(); … … 303 303 */ 304 304 template<class T> 305 inline T* tList<T>::firstElement() 305 inline T* tList<T>::firstElement() const 306 306 { 307 307 return this->first->curr; … … 314 314 */ 315 315 template<class T> 316 inline T* tList<T>::lastElement() 316 inline T* tList<T>::lastElement() const 317 317 { 318 318 return this->last->curr; … … 325 325 */ 326 326 template<class T> 327 inline bool tList<T>::isEmpty() 327 inline bool tList<T>::isEmpty() const 328 328 { 329 329 return (this->size==0)?true:false; … … 359 359 */ 360 360 template<class T> 361 inline unsigned int tList<T>::getSize() 361 inline unsigned int tList<T>::getSize() const 362 362 { 363 363 return this->size; … … 372 372 */ 373 373 template<class T> 374 inline tIterator<T>* tList<T>::getIterator() 374 inline tIterator<T>* tList<T>::getIterator() const 375 375 { 376 376 tIterator<T>* iterator = new tIterator<T>(this->first);
Note: See TracChangeset
for help on using the changeset viewer.