Changeset 4519 in orxonox.OLD for orxonox/trunk/src/util/garbage_collector.h
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/garbage_collector.h
r4485 r4519 22 22 23 23 public: 24 GarbageCollector();25 24 virtual ~GarbageCollector(); 26 static GarbageCollector* getInstance(); 25 /** \returns a Pointer to the only object of this Class */ 26 inline static GarbageCollector* getInstance(void) { if (!singletonRef) singletonRef = new GarbageCollector(); return singletonRef; }; 27 27 28 28 void setCollectionDelay(float delay); … … 34 34 35 35 private: 36 GarbageCollector(); 37 38 private: 36 39 static GarbageCollector* singletonRef; //!< The reference to this class (singleton) 37 40 float delay; //!< this is the delay to wait until collection
Note: See TracChangeset
for help on using the changeset viewer.