Changeset 10542 for code/branches/core7/src/libraries/core/class
- Timestamp:
- Jun 7, 2015, 2:16:55 PM (9 years ago)
- Location:
- code/branches/core7/src/libraries/core/class
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/class/IdentifierManager.cc
r10520 r10542 44 44 namespace orxonox 45 45 { 46 /* static */ IdentifierManager& IdentifierManager::getInstance() 47 { 48 static IdentifierManager instance; 49 return instance; 50 } 46 IdentifierManager* IdentifierManager::singletonPtr_s = 0; 51 47 52 48 IdentifierManager::IdentifierManager() -
code/branches/core7/src/libraries/core/class/IdentifierManager.h
r10520 r10542 42 42 #include <string> 43 43 44 #include "util/Singleton.h" 45 44 46 namespace orxonox 45 47 { 46 class _CoreExport IdentifierManager 48 class _CoreExport IdentifierManager : public Singleton<IdentifierManager> 47 49 { 50 friend class Singleton<IdentifierManager>; 51 48 52 public: 49 static IdentifierManager& getInstance(); 53 IdentifierManager(); 54 ~IdentifierManager() {} 50 55 51 56 void addIdentifier(Identifier* identifier); … … 88 93 89 94 private: 90 IdentifierManager(); 91 IdentifierManager(const IdentifierManager&); 92 ~IdentifierManager() {} 95 IdentifierManager(const IdentifierManager&); // not implemented 93 96 94 97 /// Increases the hierarchyCreatingCounter_s variable, causing all new objects to store their parents. … … 110 113 std::map<Identifiable*, std::list<const Identifier*> > identifierTraceOfNewObject_; 111 114 Identifier* recordTraceForIdentifier_; //!< The identifier for which we want to record the trace of identifiers during object creation. If null, no trace is recorded. 115 116 static IdentifierManager* singletonPtr_s; 112 117 }; 113 118 }
Note: See TracChangeset
for help on using the changeset viewer.