Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4941 in orxonox.OLD for orxonox/trunk/src/util/garbage_collector.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/garbage_collector.h

    r4836 r4941  
    11/*!
    2     \file garbage_collector.h
    3   * Definition of the proto class template, used quickly start work
    4    @todo Example: this shows how to use simply add a Marker that here has to be done something.
    5 
    6     The Protoclass exists, to help you quikly getting the run for how to develop in orxonox.
    7     It is an example for the CODING-CONVENTION, and a starting-point for every class.
    8 */
     2 * @file garbage_collector.h
     3 * Definition of the proto class template, used quickly start work
     4 * @todo Example: this shows how to use simply add a Marker that here has to be done something.
     5 *
     6 *  The Protoclass exists, to help you quikly getting the run for how to develop in orxonox.
     7 *  It is an example for the CODING-CONVENTION, and a starting-point for every class.
     8 */
    99
    1010#ifndef _GARBAGE_COLLECTOR_H
     
    1313#include "base_object.h"
    1414
     15#include "fast_factory.h"
    1516
    1617//! this class maintains the garbage collection.
     
    3031  void forceCollection();
    3132
     33  void collect(BaseObject* object);
     34
    3235  void tick(float time);
    3336  void update();
     
    3841 private:
    3942  static GarbageCollector*    singletonRef;           //!< The reference to this class (singleton)
    40   float                       delay;                  //!< this is the delay to wait until collection
     43
     44  FastObjectMember*           collectedObjects;       //!< A list of recently collected Objects, that want to be deleted.
     45  FastObjectMember*           unusedContainers;       //!< A list of unused containers.
     46  float                       delay;                  //!< this is the delay to wait until collection.
    4147  float                       time;                   //!< the current time
    4248
Note: See TracChangeset for help on using the changeset viewer.