Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9666 in orxonox.OLD


Ignore:
Timestamp:
Aug 20, 2006, 11:51:51 PM (18 years ago)
Author:
bensch
Message:

trunk: going towards the implementation

Location:
trunk/src/lib/lang
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/new_class_id.cc

    r9664 r9666  
    3737  assert(_objectList != NULL);
    3838
     39
    3940  //  _objectList->unregister(this);
    4041}
  • trunk/src/lib/lang/new_class_id.h

    r9665 r9666  
    1010#include "type_info.h"
    1111#include <string>
    12 
     12#include <list>
    1313#include "new_object_list.h"
    1414
     
    2727private:
    2828  NewObjectListBase*            _objectList;
     29
     30  std::list<NewObjectListBase::IteratorBase*>  _iterators;
    2931};
    3032
     
    3335{
    3436  this->_objectList = &objectList;
    35   objectList.registerObject(object);
     37  _iterators.push_back(objectList.registerObject(object));
    3638}
    3739
  • trunk/src/lib/lang/new_object_list.h

    r9665 r9666  
    2323{
    2424public:
     25  class IteratorBase { };
     26
     27public:
    2528  int id() const { return _id; };
    2629  const std::string& name() const { return _name; };
     
    4043
    4144protected:
    42   class IteratorBase { };
    4345
    4446  NewObjectListBase(const std::string& className);
     
    7779  typedef typename list::iterator     iterator;
    7880
    79   class Iterator : public NewObjectListBase::IteratorBase
     81class Iterator : public NewObjectListBase::IteratorBase
    8082  {
    8183  public:
Note: See TracChangeset for help on using the changeset viewer.