Changeset 4941 in orxonox.OLD for orxonox/trunk/src/util/garbage_collector.h
- Timestamp:
- Jul 23, 2005, 1:08:39 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/garbage_collector.h
r4836 r4941 1 1 /*! 2 \file garbage_collector.h3 *Definition of the proto class template, used quickly start work4 5 6 7 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 */ 9 9 10 10 #ifndef _GARBAGE_COLLECTOR_H … … 13 13 #include "base_object.h" 14 14 15 #include "fast_factory.h" 15 16 16 17 //! this class maintains the garbage collection. … … 30 31 void forceCollection(); 31 32 33 void collect(BaseObject* object); 34 32 35 void tick(float time); 33 36 void update(); … … 38 41 private: 39 42 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. 41 47 float time; //!< the current time 42 48
Note: See TracChangeset
for help on using the changeset viewer.