Changeset 646 for code/branches/FICN/src/orxonox/core
- Timestamp:
- Dec 19, 2007, 5:04:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Iterator.h
r496 r646 56 56 57 57 /** 58 @brief Overloading of the it++ operator: Iterator points to the next object in the list. 59 @return The Iterator itself 60 */ 61 Iterator<T> operator++(int i) 62 { 63 Iterator<T> copy = *this; 64 this->element_ = this->element_->next_; 65 return copy; 66 } 67 68 /** 58 69 @brief Overloading of the --it operator: Iterator points to the previous object in the list. 59 70 @return The Iterator itself … … 63 74 this->element_ = this->element_->prev_; 64 75 return *this; 76 } 77 78 /** 79 @brief Overloading of the it-- operator: Iterator points to the previous object in the list. 80 @return The Iterator itself 81 */ 82 Iterator<T> operator--(int i) 83 { 84 Iterator<T> copy = *this; 85 this->element_ = this->element_->prev_; 86 return copy; 65 87 } 66 88
Note: See TracChangeset
for help on using the changeset viewer.