Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3238 in orxonox.OLD for orxonox/branches/nico/src/list.h


Ignore:
Timestamp:
Dec 20, 2004, 2:42:54 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/nico/src/list.h

    r2822 r3238  
    11
    2 #ifndef LIST_H
    3 #define LIST_H
     2#ifndef _LIST_H
     3#define _LIST_H
    44
    55#include "stdincl.h"
     
    2222  void add(WorldEntity* entity);
    2323  void remove(WorldEntity* entity);
    24   void clear();
     24  void destroy();
    2525  WorldEntity* firstElement();
    2626  bool isEmpty();
     
    8080  void add(WorldEntity* entity);
    8181  void remove(WorldEntity* entity);
    82   void clear();
     82  void destroy();
    8383  T* firstElement();
    8484  bool isEmpty();
     
    106106void tList<T>::add(WorldEntity* entity)
    107107{
    108   printf("tList<T>::add() \n");
    109108  listElement* el = new listElement;
    110109  el->prev = this->last;
     
    128127    {
    129128      if( this->currentEl->curr == entity)
    130         {
    131           printf("tList<T>::remove() - object found\n");
    132          
     129        {
    133130          if( this->currentEl->prev  == NULL ) this->first = this->currentEl->next;
    134131          else this->currentEl->prev->next = this->currentEl->next;
     
    148145
    149146template<class T>
    150 void tList<T>::clear()
    151 {
    152   printf("tList<T>::clear() - clearing all world objects, releasing mem\n");
     147void tList<T>::destroy()
     148{
    153149  this->currentEl = this->first;
    154150  while(this->currentEl != NULL)
     
    209205{}
    210206
    211 #endif
     207#endif /* _LIST_H */
Note: See TracChangeset for help on using the changeset viewer.