Changeset 248 for code/branches/objecthierarchie/src/ObjectList.h
- Timestamp:
- Nov 26, 2007, 1:57:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchie/src/ObjectList.h
r246 r248 39 39 // ############################### 40 40 template <class T> 41 class Iterator; 42 43 template <class T> 41 44 class ObjectList 42 45 { … … 47 50 void remove(OrxonoxClass* object, bool bIterateForwards = true); 48 51 52 inline static Iterator<T> start() 53 { Iterator<T>(pointer_s->first_); } 54 inline static Iterator<T> end() 55 { Iterator<T>(pointer_s->last_); } 56 49 57 ObjectListElement<T>* first_; 50 58 ObjectListElement<T>* last_; 59 60 private: 61 static ObjectList<T>* pointer_s; 51 62 }; 63 64 template <class T> 65 ObjectList<T>* ObjectList<T>::pointer_s = 0; 52 66 53 67 template <class T> … … 56 70 this->first_ = 0; 57 71 this->last_ = 0; 72 73 this->pointer_s = this; 58 74 } 59 75
Note: See TracChangeset
for help on using the changeset viewer.