Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4937 in orxonox.OLD for orxonox/trunk/src/util/object_manager.h


Ignore:
Timestamp:
Jul 22, 2005, 7:37:05 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: FastFactory: some more movement to the BaseClass. Now it is almost where i want it
doxygen tags will follow at 2 o'Clock in the morning …

File:
1 edited

Legend:

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

    r4936 r4937  
    5757
    5858    virtual void fabricate() = NULL;
     59    void prepare(unsigned int count);
    5960    // retrival functions for fast Ineraction
    6061    //FastFactory* getFastFactory(ClassID classID);
     
    103104    static tFastFactory<T>* getFastFactory(ClassID classID, const char* fastFactoryName = NULL);
    104105
    105     void prepare(unsigned int count);
    106 
    107106    T* resurect();
    108107  private:
     
    123122  : FastFactory(classID, fastFactoryName)
    124123{
    125   PRINTF(5)("Class: %s loadable as a FastFactory\n", this->getName());
    126 
    127   this->deadList = NULL;
    128   this->unusedContainers = NULL;
    129124}
    130125
     
    152147
    153148  this->deadList = tmpFirstDead;
    154 }
    155 
    156 template<class T>
    157     void tFastFactory<T>::prepare(unsigned int count)
    158 {
    159 /*  if (this->storedDeadObjects + this->storedLivingObjects >= count)
    160   {
    161     PRINTF(3)("not creating new Objects for class %s, because the requested count already exists\n", this->getClassName());
    162   }*/
    163   for (int i = this->storedDeadObjects; i < count; i++)
    164   {
    165     this->fabricate();
    166   }
    167149}
    168150
Note: See TracChangeset for help on using the changeset viewer.