Changeset 9724 in orxonox.OLD for branches/new_class_id/src/lib/lang/object_list.cc
- Timestamp:
- Sep 8, 2006, 12:20:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/lang/object_list.cc
r9716 r9724 98 98 /** 99 99 * @brief Checks if a Class with name already exists. 100 * @param name The Nameof the Class to check.100 * @param id The id of the Class to check. 101 101 * @return true if such a class already exists. 102 102 */ … … 233 233 } 234 234 235 236 /** 237 * @returns An alphabetically sorted List of all stored ClassNames. 238 */ 239 const std::list<std::string>& ObjectListBase::getClassNames() 240 { 241 if (ObjectListBase::classCount() != ObjectListBase::_classNames.size()) 242 { 243 ObjectListBase::_classNames.clear(); 244 245 for (classNameMap::const_iterator it = ObjectListBase::_classesByName->begin(); 246 it != ObjectListBase::_classesByName->end(); 247 ++it) 248 { 249 ObjectListBase::_classNames.push_back((*it).second->name()); 250 } 251 } 252 return ObjectListBase::_classNames; 253 } 254 255 235 256 #include "base_object.h" 236 257 237 258 /** 238 259 * @brief Prints out some debugging information about a given List. 260 * @param level: 261 * 1: List ObjectListsand how many object. 262 * 2: 1+List ObjectLists entries, and information about Objects. 239 263 */ 240 264 void ObjectListBase::debug(unsigned int level) const … … 259 283 260 284 285 /** 286 * @brief prints out debug output about all Lists 287 * @param level: 288 * 0: list number of ClassList and general info. 289 * 1: 0+List ObjectLists and how many object. 290 * 2: 1+List ObjectLists entries, and information about Objects. 291 */ 261 292 void ObjectListBase::debugAll(unsigned int level) 262 293 {
Note: See TracChangeset
for help on using the changeset viewer.