Changeset 698 for code/branches/FICN/src/orxonox/core/Identifier.h
- Timestamp:
- Dec 27, 2007, 5:49:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Identifier.h
r696 r698 137 137 { this->configValues_[varname] = container; } 138 138 139 st d::map<std::string, Identifier*>& getIdentifierMap();139 static std::map<std::string, Identifier*>& getIdentifierMap(); 140 140 141 141 private: … … 171 171 bool bCreatedOneObject_; //!< True if at least one object of the given type was created (used to determine the need of storing the parents) 172 172 static int hierarchyCreatingCounter_s; //!< Bigger than zero if at least one Identifier stores its parents (its an int instead of a bool to avoid conflicts with multithreading) 173 static unsigned int classIDcounter_s; //!< The number of existing Identifiers174 173 unsigned int classID_; //!< The network ID to identify a class through the network 175 174 std::map<std::string, ConfigValueContainer*> configValues_; //!< A map to link the string of configurable variables with their ConfigValueContainer … … 197 196 private: 198 197 ClassIdentifier(); 199 ClassIdentifier(const ClassIdentifier<T>& identifier) {} // don't copy200 ~ClassIdentifier() ;198 ClassIdentifier(const ClassIdentifier<T>& identifier) {} // don't copy 199 ~ClassIdentifier() {} // don't delete 201 200 202 201 ObjectList<T>* objects_; //!< The ObjectList, containing all objects of type T … … 211 210 ClassIdentifier<T>::ClassIdentifier() 212 211 { 213 this->objects_ = new ObjectList<T>;212 this->objects_ = ObjectList<T>::getList(); 214 213 this->bSetName_ = false; 215 }216 217 /**218 @brief Destructor: Deletes the ObjectList, sets the singleton-pointer to zero.219 */220 template <class T>221 ClassIdentifier<T>::~ClassIdentifier()222 {223 delete this->objects_;224 214 } 225 215
Note: See TracChangeset
for help on using the changeset viewer.