Changeset 4941 in orxonox.OLD for orxonox/trunk/src/util/fast_factory.h
- Timestamp:
- Jul 23, 2005, 1:08:39 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/fast_factory.h
r4940 r4941 23 23 #include "base_object.h" 24 24 25 26 // FORWARD DECLARATION //27 class GarbageCollector;28 template<class T>29 class tList;30 31 25 /** 32 * Creates a FastFactory to a Loadable FastFactory.26 * Creates a FastFactory to a Createable FastFactory. 33 27 */ 34 //#define CREATE_FAST_FACTORY(CLASS_NAME, CLASS_ID) \35 //tFastFactory<CLASS_NAME>* global_##CLASS_NAME##_FastFactory = new tFastFactory<CLASS_NAME>(#CLASS_NAME, CLASS_ID)28 #define CREATE_FAST_FACTORY(CLASS_NAME, CLASS_ID) \ 29 tFastFactory<CLASS_NAME>* global_##CLASS_NAME##_FastFactory = tFastFactory<CLASS_NAME>::getFastFactory(CLASS_ID, #CLASS_NAME) 36 30 37 31 //! A struct, that holds Lists of Objects of a certain type. 38 struct FastObjectMember32 typedef struct FastObjectMember 39 33 { 40 34 BaseObject* objectPointer; //!< Pointer to the Object Stored in this Class (if it is the DeadList, else it is bork) … … 65 59 66 60 void prepare(unsigned int count); 67 // retrival functions for fast Ineraction68 //FastFactory* getFastFactory(ClassID classID);69 61 70 62 static void flushAll(bool hardFLUSH = false); … … 110 102 FastFactory* next; //!< pointer to the next FastFactory. 111 103 }; 104 105 112 106 113 107 /** … … 157 151 } 158 152 159 160 153 /** 161 154 * fabricates an Object of Class T, that corresponds to classID.
Note: See TracChangeset
for help on using the changeset viewer.