Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9675 in orxonox.OLD for trunk/src/lib/lang/test_object_list.cc


Ignore:
Timestamp:
Aug 21, 2006, 10:57:35 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: more Implementation of Functionality.
Introduced map for fast search of ID/Name pairs.
This will also be used to speedup the Factory create-process

File:
1 edited

Legend:

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

    r9674 r9675  
    88{
    99public:
    10   void setName(const std::string& name) { this->_objectName = name; };
    11   const std::string& getName() const { return _objectName; };
    12   bool operator==(const std::string& name) const { return _objectName == name; };
     10  //   void setName(const std::string& name) { this->_objectName = name; };
     11     const std::string& getName() const { return _objectName; };
     12  //   bool operator==(const std::string& name) const { return _objectName == name; };
    1313
    14   NewObjectListDeclaration(NewBaseObject);
     14  //  NewObjectListDeclaration(NewBaseObject);
    1515
    1616protected:
    1717  NewBaseObject(const std::string& objectName = "") : _objectName(objectName)
    1818  {
    19     this->registerObject(this, objectList);
     19    //    this->registerObject(this, objectList);
    2020  };
    2121  template<class T>
     
    2727
    2828};
    29 NewObjectListDefinition(NewBaseObject);
     29//NewObjectListDefinition(NewBaseObject);
    3030
    3131
    32 class Test : public NewBaseObject
     32class Test :
     33      public   NewBaseObject
     34//    ,
     35//      public BaseObject
    3336{
    3437public:
     
    4447Test::Test()
    4548{
     49  this->registerObject(this, Test::objectList);
    4650//  this->setClassID(CL_PARENT_NODE, "Test");
    47   this->registerObject(this, Test::objectList);
    4851  // std::cout << "Test()\n";
    4952};
     
    5861  Bone()
    5962  {
    60 //    this->registerObject(this, Bone::objectList);
     63    //    this->registerObject(this, Bone::objectList);
    6164    //std::cout << "Bone()\n";
    6265  };
     
    7578    std::cout<< i << std::endl;
    7679    Test* test = new Test[10000];
    77     delete[]test;
     80    // delete[]test;
    7881  }
    7982  //   char tmp[100];
Note: See TracChangeset for help on using the changeset viewer.