Changeset 4592 in orxonox.OLD for orxonox/trunk/src/util/object_manager.cc
- Timestamp:
- Jun 10, 2005, 7:17:22 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/object_manager.cc
r4519 r4592 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 26 26 \brief standard constructor 27 27 */ 28 ObjectManager::ObjectManager () 28 ObjectManager::ObjectManager () 29 29 { 30 30 this->setClassID(CL_OBJECT_MANAGER, "ObjectManager"); 31 31 32 32 this->managedObjectList = new tList<BaseObject>*[CL_NUMBER]; 33 33 for(int i = 0; i < CL_NUMBER; ++i) … … 48 48 \brief standard deconstructor 49 49 */ 50 ObjectManager::~ObjectManager () 50 ObjectManager::~ObjectManager () 51 51 { 52 52 ObjectManager::singletonRef = NULL; … … 80 80 this->managedObjectList[index]->remove(obj); 81 81 if( unlikely(obj == NULL)) 82 83 84 82 { 83 PRINTF(0)("Critical: there was no object anymore in the dead list! This could result in Segfaults\n"); 84 } 85 85 return obj; 86 86 } … … 96 96 { 97 97 PRINT(0)("\n==========================| ObjectManager::debug() |===\n"); 98 PRINT(0)("= Number of registerable classes: %i\n", CL_NUMBER ); 98 PRINT(0)("= Number of registerable classes: %i\n", CL_NUMBER ); 99 99 PRINT(0)("= Currently cached objects: \n"); 100 100 for(int i = 0; i < CL_NUMBER; ++i) 101 101 { 102 102 if( this->managedObjectList[i] != NULL) 103 103 PRINT(0)("= o Class Nr. %i has cached %i object(s)\n", i, this->managedObjectList[i]->getSize()); 104 104 else 105 105 PRINT(0)("= o Class Nr. %i has cached 0 object(s)\n", i); 106 106 } 107 107 PRINT(0)("=======================================================\n");
Note: See TracChangeset
for help on using the changeset viewer.