Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 9, 2008, 4:44:36 PM (16 years ago)
Author:
landauf
Message:

merged core branch to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/core/Iterator.h

    r790 r871  
    2626 */
    2727
    28 /*!
     28/**
    2929    @file Iterator.h
    3030    @brief Definition and implementation of the Iterator class.
     
    7171            */
    7272            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)
    7382            {
    7483                this->element_ = element;
     
    150159                @return True if the iterator points to an existing object.
    151160            */
    152             bool operator!=(int compare)
     161            bool operator!=(ObjectListElement<T>* compare)
    153162            {
    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);
    159164            }
    160165
Note: See TracChangeset for help on using the changeset viewer.