Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5110 in orxonox.OLD for trunk/src/util/shell.cc


Ignore:
Timestamp:
Aug 23, 2005, 11:07:40 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: changed the behaviour of the iterator.
Now it is soon possible to walk through a List from front and back, and tell the Iterator from where to seek

@patrick: i had to disable your Collision-Detection algorithms, because they had a seekElement inside, that i did not entirely grasp the meaning of….
trying to fix this now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/shell.cc

    r5108 r5110  
    9191  // delete all the Chars in the Buffers
    9292  tIterator<char>* charIterator = this->buffer->getIterator();
    93   char* charElem = charIterator->nextElement();
     93  char* charElem = charIterator->firstElement();
    9494  while (charElem != NULL)
    9595  {
     
    191191  // delete all the Chars in the Buffers
    192192  tIterator<char>* charIterator = this->buffer->getIterator();
    193   char* charElem = charIterator->nextElement();
     193  char* charElem = charIterator->firstElement();
    194194
    195195  while (charElem != NULL)
     
    289289{
    290290  tIterator<char>* charIterator = this->buffer->getIterator();
    291   char* charElem = charIterator->nextElement();
     291  char* charElem = charIterator->firstElement();
    292292
    293293  int i = 1;
     
    606606    addLength = strlen(addString);
    607607  tIterator<const char>* charIterator = stringList->getIterator();
    608   const char* charElem = charIterator->nextElement();
     608  const char* charElem = charIterator->firstElement();
    609609  while (charElem != NULL)
    610610  {
     
    655655
    656656  tIterator<const char>* iterator = inputList->getIterator();
    657   const char* enumString = iterator->nextElement();
     657  const char* enumString = iterator->firstElement();
    658658  while (enumString != NULL)
    659659  {
     
    687687
    688688  tIterator<BaseObject>* iterator = inputList->getIterator();
    689   BaseObject* enumBO = iterator->nextElement();
     689  BaseObject* enumBO = iterator->firstElement();
    690690  while (enumBO != NULL)
    691691  {
Note: See TracChangeset for help on using the changeset viewer.