Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5103 in orxonox.OLD for trunk/src/lib/util/list.h


Ignore:
Timestamp:
Aug 22, 2005, 6:08:15 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better algorithm to find the ClassName.
Now this is done via the ClassList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/list.h

    r5076 r5103  
    135135  void removeLast();
    136136  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;
    141141  bool inList(T* entity);
    142   tIterator<T>* getIterator();
     142  tIterator<T>* getIterator() const;
    143143  T* nextElement(T* toEntity);
    144144  T* toArray();
     
    303303*/
    304304template<class T>
    305 inline T* tList<T>::firstElement()
     305inline T* tList<T>::firstElement() const
    306306{
    307307  return this->first->curr;
     
    314314*/
    315315template<class T>
    316 inline T* tList<T>::lastElement()
     316inline T* tList<T>::lastElement() const
    317317{
    318318  return this->last->curr;
     
    325325*/
    326326template<class T>
    327 inline bool tList<T>::isEmpty()
     327inline bool tList<T>::isEmpty() const
    328328{
    329329  return (this->size==0)?true:false;
     
    359359*/
    360360template<class T>
    361 inline unsigned int tList<T>::getSize()
     361inline unsigned int tList<T>::getSize() const
    362362{
    363363  return this->size;
     
    372372*/
    373373template<class T>
    374 inline tIterator<T>* tList<T>::getIterator()
     374inline tIterator<T>* tList<T>::getIterator() const
    375375{
    376376  tIterator<T>* iterator = new tIterator<T>(this->first);
Note: See TracChangeset for help on using the changeset viewer.