Changeset 957 for code/branches/core2/src/orxonox/core/Identifier.h
- Timestamp:
- Mar 30, 2008, 5:38:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/Identifier.h
r947 r957 109 109 bool isDirectParentOf(const Identifier* identifier) const; 110 110 111 virtual const ObjectList<BaseObject>* getObjectList() const = 0; 112 113 virtual void updateConfigValues() const = 0; 114 111 115 /** @brief Removes all objects of the corresponding class. */ 112 116 virtual void removeObjects() const = 0; … … 304 308 void removeObjects() const; 305 309 void setName(const std::string& name); 310 /** @brief Returns the list of all existing objects of this class. @return The list */ 306 311 inline const ObjectList<T>* getObjects() const { return this->objects_; } 312 /** @brief Returns a list of all existing objects of this class. @return The list */ 313 inline const ObjectList<BaseObject>* getObjectList() const { return (ObjectList<BaseObject>*)this->objects_; } 314 315 void updateConfigValues() const; 307 316 308 317 XMLPortParamContainer* getXMLPortParamContainer(const std::string& paramname); … … 395 404 for (Iterator<T> it = this->objects_->start(); it;) 396 405 delete *(it++); 406 } 407 408 /** 409 @brief Updates the config-values of all existing objects of this class by calling their setConfigValues() function. 410 */ 411 template <class T> 412 void ClassIdentifier<T>::updateConfigValues() const 413 { 414 for (Iterator<T> it = this->objects_->start(); it; ++it) 415 ((T*)*it)->setConfigValues(); 397 416 } 398 417
Note: See TracChangeset
for help on using the changeset viewer.