Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 1, 2006, 8:06:39 PM (19 years ago)
Author:
bensch
Message:

renamed newclassid to classid and newobjectlist to objectlist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/lang/base_object.h

    r9709 r9715  
    2626class BaseObject : public sigslot::has_slots<>
    2727{
    28   NewObjectListDeclaration(BaseObject);
     28  ObjectListDeclaration(BaseObject);
    2929public:
    3030  BaseObject (const std::string& objectName = "");
     
    4848  inline const std::string& getClassName() const { return _classes.front()._objectList->name(); };
    4949
    50   inline const NewClassID& getClassID() const { return *_leafClassID; }
     50  inline const ClassID& getClassID() const { return *_leafClassID; }
    5151  /** @returns the ID of the Topmost object of the ClassStack */
    5252  inline const int& getLeafClassID() const { return _leafClassID->id(); }
    5353
    54   bool isA(const NewObjectListBase& objectList) const;
    55   bool isA(const NewClassID& classID) const;
     54  bool isA(const ObjectListBase& objectList) const;
     55  bool isA(const ClassID& classID) const;
    5656  bool isA(int classID) const;
    5757  bool isA(const std::string& className) const;
     
    6565
    6666protected:
    67   template<class T> void registerObject(T* object, NewObjectList<T>& list);
     67  template<class T> void registerObject(T* object, ObjectList<T>& list);
    6868
    6969protected:
     
    8080  struct ClassEntry
    8181  {
    82     /** Simple Constuctor @param objectList the NewObjectList, @param iterator the (intrusive) Iterator inside of the ObjectList */
    83     inline ClassEntry (NewObjectListBase* objectList, NewObjectListBase::IteratorBase* iterator) : _objectList(objectList), _iterator(iterator) {}
    84     NewObjectListBase*                _objectList;  //!< A ObjectList this Object is part of
    85     NewObjectListBase::IteratorBase*  _iterator;    //!< An iterator pointing to the position of the Object inside of the List.
     82    /** Simple Constuctor @param objectList the ObjectList, @param iterator the (intrusive) Iterator inside of the ObjectList */
     83    inline ClassEntry (ObjectListBase* objectList, ObjectListBase::IteratorBase* iterator) : _objectList(objectList), _iterator(iterator) {}
     84    ObjectListBase*                _objectList;  //!< A ObjectList this Object is part of
     85    ObjectListBase::IteratorBase*  _iterator;    //!< An iterator pointing to the position of the Object inside of the List.
    8686  };
    8787  typedef std::list<ClassEntry>        ClassList;   //!< Type definition for the List.
     
    8989  std::string                         className;    //!< the name of the class
    9090  ClassList                           _classes;     //!< All Classes this object is part of.
    91   const NewClassID*                       _leafClassID;  //!< Topmost ClassID.
     91  const ClassID*                       _leafClassID;  //!< Topmost ClassID.
    9292};
    9393
     
    103103 */
    104104template<class T>
    105 inline void BaseObject::registerObject(T* object, NewObjectList<T>& objectList)
     105inline void BaseObject::registerObject(T* object, ObjectList<T>& objectList)
    106106{
    107107  this->_leafClassID = &objectList.identity();
Note: See TracChangeset for help on using the changeset viewer.