Changeset 9757 in orxonox.OLD for branches/new_class_id/src/lib/lang
- Timestamp:
 - Sep 18, 2006, 10:06:19 PM (19 years ago)
 - Location:
 - branches/new_class_id/src/lib/lang
 - Files:
 - 
          
- 3 edited
 
- 
          class_id.h (modified) (2 diffs)
 - 
          object_list.cc (modified) (2 diffs)
 - 
          object_list.h (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/new_class_id/src/lib/lang/class_id.h
r9716 r9757 61 61 public: 62 62 /** @returns the NullClass' ID. */ 63 static const ClassID& classID() { return NullClass::_classID; }63 static const ClassID& staticClassID() { return NullClass::_classID; } 64 64 /** @param id the ID to acquire @param name the name to acquire @brief acquires the ID of this Class */ 65 65 static void acquireID(const int*& id, const std::string*& name) { id = &_nullID; name = &_nullName; }; … … 69 69 70 70 private: 71 static ClassID _classID; //!< The NullClass' ID71 static ClassID _classID; //!< The NullClass' ID 72 72 static const std::string _nullName; //!< The NullClass' Name ("NullClass") 73 73 static int _nullID; //!< The NullClass' ID  - 
        
branches/new_class_id/src/lib/lang/object_list.cc
r9726 r9757 125 125 return base->_identity; 126 126 else 127 return NullClass:: classID();127 return NullClass::staticClassID(); 128 128 } 129 129 … … 141 141 return base->_identity; 142 142 else 143 return NullClass:: classID();143 return NullClass::staticClassID(); 144 144 } 145 145  - 
        
branches/new_class_id/src/lib/lang/object_list.h
r9726 r9757 25 25 public: \ 26 26 static inline const ObjectList<ClassName>& objectList() { return ClassName::_objectList; }; \ 27 static inline const ClassID& classID() { return ClassName::_objectList.identity(); }; \27 static inline const ClassID& staticClassID() { return ClassName::_objectList.identity(); }; \ 28 28 private: \ 29 29 static ObjectList<ClassName> _objectList  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






