Changeset 5447 in orxonox.OLD for trunk/src/util
- Timestamp:
- Oct 29, 2005, 1:14:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/fast_factory.h
r5357 r5447 29 29 */ 30 30 #define CREATE_FAST_FACTORY(CLASS_NAME, CLASS_ID) \ 31 tFastFactory<CLASS_NAME>* global_##CLASS_NAME##_FastFactory = tFastFactory<CLASS_NAME>::getFastFactory(CLASS_ID, #CLASS_NAME) 31 FastFactory* global_##CLASS_NAME##_FastFactory = tFastFactory<CLASS_NAME>::getFastFactory(CLASS_ID, #CLASS_NAME) 32 /** 33 * Creates a FastFactory for a Class' static function named ClassName::fastFactory. 34 * @param CLASS_NAME the name of the Class to create the fast-factory for. 35 * @param CLASS_ID the ID of the class to create the fast-factory for @see "class_id.h" 36 * 37 * notice, that the Class to be called, must implement: 38 * static FastFactory* fastFactory; 39 */ 40 #define CREATE_FAST_FACTORY_STATIC(CLASS_NAME, CLASS_ID) \ 41 FastFactory* CLASS_NAME::fastFactory = tFastFactory<CLASS_NAME>::getFastFactory(CLASS_ID, #CLASS_NAME) 32 42 33 43 //! A struct, that holds Lists of Objects of a certain type.
Note: See TracChangeset
for help on using the changeset viewer.