Changeset 9808 in orxonox.OLD for branches/new_class_id/src/lib/util
- Timestamp:
- Sep 25, 2006, 12:39:24 AM (18 years ago)
- Location:
- branches/new_class_id/src/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/count_pointer.h
r9723 r9808 11 11 explicit CountPointer(X* p = NULL) // allocate a new counter 12 12 : itsCounter(NULL) { if (p) itsCounter = new counter(p); } 13 virtual~CountPointer() { release(); }13 ~CountPointer() { release(); } 14 14 CountPointer(const CountPointer& r) { acquire(r.itsCounter); } 15 15 CountPointer& operator=(const CountPointer& r) … … 25 25 inline X& operator*() const { return *itsCounter->ptr; } 26 26 inline X* operator->() const { return itsCounter->ptr; } 27 inline bool unique() const { return (itsCounter ? itsCounter->count == 1 : true); }27 inline bool unique() const { return (itsCounter ? itsCounter->count == 1 : true); } 28 28 inline bool isNull() const { return (!itsCounter); } 29 29 30 virtualunsigned int count() const { return (this->itsCounter ? itsCounter->count : 0); }30 unsigned int count() const { return (this->itsCounter ? itsCounter->count : 0); } 31 31 private: 32 32 -
branches/new_class_id/src/lib/util/loading/fast_factory.cc
r9715 r9808 164 164 tmpMember = tmpMember->next; 165 165 if (hardFLUSH) 166 {167 166 delete delMember->objectPointer; 168 }169 167 delete delMember; 170 168 }
Note: See TracChangeset
for help on using the changeset viewer.