Changeset 4747 in orxonox.OLD for orxonox/trunk/src/lib/lang/class_list.h
- Timestamp:
- Jul 1, 2005, 4:10:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/class_list.h
r4744 r4747 3 3 \brief Definition of the Class List, that handles a Class-Specific-Control structure 4 4 5 */5 */ 6 6 7 7 #ifndef _CLASS_LIST_H … … 15 15 16 16 17 //! A class for 17 //! A class that handles Pointers to Objects of all type. 18 /** 19 here all the Pointers to all the Object of orxonox are stored, that implement BaseObject 20 for now, this is only for debugging reasons, and we should be able to detect undeleted 21 Objects. 22 */ 18 23 class ClassList { 19 24 20 public: 21 ClassList(); 22 virtual ~ClassList(); 25 public: 26 ClassList(const long& classID, const char* className); 27 virtual ~ClassList(); 28 29 static void addToClassList(BaseObject* objectPointer, const long& classID, const char* className); 30 static void removeFromClassList(BaseObject* objectPointer); 31 32 static void debug(); 33 34 private: 35 //! a Struct for Lists of Objects 36 struct ObjectList 37 { 38 BaseObject* pointerToObject; 39 ObjectList* next; 40 }; 41 42 long classID; 43 const char* className; 44 45 ClassList* next; 46 47 unsigned int objectCount; 23 48 24 49 25 void addToClassList(BaseObject* objectPointer, ClassID classID, const char* className); 26 private: 27 static ClassList* first; 28 static ClassList* last; 29 30 int classCount; 31 50 static ClassList* first; 51 static unsigned int classCount; 32 52 33 53 };
Note: See TracChangeset
for help on using the changeset viewer.