Changeset 871 for code/trunk/src/orxonox/core/Iterator.h
- Timestamp:
- Mar 9, 2008, 4:44:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/core/Iterator.h
r790 r871 26 26 */ 27 27 28 /* !28 /** 29 29 @file Iterator.h 30 30 @brief Definition and implementation of the Iterator class. … … 71 71 */ 72 72 Iterator(ObjectListElement<T>* element) 73 { 74 this->element_ = element; 75 } 76 77 /** 78 @brief Assigns an element to the iterator. 79 @param element The element 80 */ 81 Iterator<T> operator=(ObjectListElement<T>* element) 73 82 { 74 83 this->element_ = element; … … 150 159 @return True if the iterator points to an existing object. 151 160 */ 152 bool operator!=( intcompare)161 bool operator!=(ObjectListElement<T>* compare) 153 162 { 154 // Comparing with anything except zero makes no sense 155 if (compare != 0) 156 COUT(2) << "Warning: Comparing the " << ClassIdentifier<T>::getIdentifier()->getName() << "-List-Iterator with " << compare << " has no effect. Only comparison with 0 works." << std::endl; 157 158 return (this->element_ != 0); 163 return (this->element_ != compare); 159 164 } 160 165
Note: See TracChangeset
for help on using the changeset viewer.