Changeset 4942 in orxonox.OLD for orxonox/trunk/src/lib/lang
- Timestamp:
- Jul 23, 2005, 1:21:20 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/lang
- Files:
-
- 2 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
Note: See TracChangeset
for help on using the changeset viewer.