Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4941 in orxonox.OLD for orxonox/trunk/src/util/fast_factory.h


Ignore:
Timestamp:
Jul 23, 2005, 1:08:39 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: new garbage-collection-algorithm works, but the entities are not correctly setup for re-entering the scene.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/fast_factory.h

    r4940 r4941  
    2323#include "base_object.h"
    2424
    25 
    26 // FORWARD DECLARATION //
    27 class GarbageCollector;
    28 template<class T>
    29 class tList;
    30 
    3125/**
    32  * Creates a FastFactory to a Loadable FastFactory.
     26 * Creates a FastFactory to a Createable FastFactory.
    3327 */
    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)
    3630
    3731//! A struct, that holds Lists of Objects of a certain type.
    38 struct FastObjectMember
     32typedef struct FastObjectMember
    3933  {
    4034    BaseObject*          objectPointer;      //!< Pointer to the Object Stored in this Class (if it is the DeadList, else it is bork)
     
    6559
    6660    void prepare(unsigned int count);
    67     // retrival functions for fast Ineraction
    68     //FastFactory* getFastFactory(ClassID classID);
    6961
    7062    static void flushAll(bool hardFLUSH = false);
     
    110102    FastFactory*          next;                 //!< pointer to the next FastFactory.
    111103  };
     104
     105
    112106
    113107/**
     
    157151}
    158152
    159 
    160153/**
    161154 * fabricates an Object of Class T, that corresponds to classID.
Note: See TracChangeset for help on using the changeset viewer.