Changeset 4942 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jul 23, 2005, 1:21:20 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/base_object.cc
r4874 r4942 34 34 this->className = NULL; 35 35 this->classID = CL_BASE_OBJECT; 36 this->finalized = false;37 36 38 37 this->objectName = NULL; -
orxonox/trunk/src/lib/lang/base_object.h
r4933 r4942 38 38 void whatIs() const; 39 39 40 /** @returns if the object is finalized */41 inline bool isFinalized() { return this->finalized; };42 43 44 40 protected: 45 41 void setClassID(long classID, const char* className); 46 47 /** \brief this finalizes an object and makes it ready to be garbage collected */48 void finalize() { this->finalized = true; };49 42 50 43 private: … … 52 45 long classID; //!< this is the id from the class_id.h enumeration 53 46 char* objectName; //!< The name of this object 54 55 bool finalized; //!< is true if the object is ready to be garbage collected56 47 }; 57 48 -
orxonox/trunk/src/orxonox.cc
r4885 r4942 95 95 delete EventHandler::getInstance(); 96 96 97 ClassList::debug( 3, CL_PARENT_NODE);97 ClassList::debug(); 98 98 99 99 PRINT(3) -
orxonox/trunk/src/subprojects/benchmark.cc
r4554 r4942 176 176 rdtscl(ini); 177 177 178 bo->isFinalized();178 // bo->isFinalized(); 179 179 180 180 rdtscl(end); -
orxonox/trunk/src/util/garbage_collector.cc
r4941 r4942 89 89 void GarbageCollector::collect(BaseObject* object) 90 90 { 91 printf("TEST\n");92 91 State::getWorldEntityList()->remove(dynamic_cast<WorldEntity*>(object)); 93 92 FastObjectMember* tmpC; -
orxonox/trunk/src/world_entities/weapons/test_bullet.cc
r4941 r4942 70 70 // this->finalize(); 71 71 GarbageCollector::getInstance()->collect(this); 72 this->lifeCycle = 0.0; 72 73 73 74 }
Note: See TracChangeset
for help on using the changeset viewer.