#include <refcounter.h>
Inherited by UniversalManager< T, ParrentClass >::ManagedItem.
Inheritance diagram for RefCounter:

Public Member Functions | |
| virtual | ~RefCounter () |
| void * | operator new (size_t size) |
| Customized overloaded operator new (it only allocates memory). | |
| bool | isHeapAllocated (void) |
| int | getRefCount (void) |
Protected Member Functions | |
| RefCounter () | |
| void | incRef () |
| void | decRef () |
| virtual void | OnZeroRefCount () |
Private Types | |
| typedef std::list< void * > | TTempHeapPointers |
Private Attributes | |
| int | mRefCount |
| bool | mHeapAllocated |
Static Private Attributes | |
| static TTempHeapPointers | mTmpHeapPtrs |
Friends | |
| class | RefCounterPtrBase |
Definition at line 17 of file refcounter.h.
|
|
Definition at line 50 of file refcounter.h. |
|
|
Definition at line 8 of file refcounter.cpp. |
|
|
Definition at line 12 of file refcounter.cpp. References mHeapAllocated, and mTmpHeapPtrs. |
|
|
Definition at line 62 of file refcounter.h. References assertL, mRefCount, OnZeroRefCount(), and TIN. Referenced by RefCounterPtrBase::decRef(). Here is the call graph for this function: ![]() |
|
|
Definition at line 37 of file refcounter.h. References mRefCount. |
|
|
Definition at line 56 of file refcounter.h. References assertL, mRefCount, and TIN. Referenced by RefCounterPtrBase::incRef(). |
|
|
Definition at line 69 of file refcounter.h. References mHeapAllocated. Referenced by UniversalManager< T, ParrentClass >::ManagedItem::OnZeroRefCount(), and OnZeroRefCount(). |
|
|
Reimplemented in UniversalManager< T, ParrentClass >::ManagedItem. Definition at line 31 of file refcounter.cpp. References isHeapAllocated(). Referenced by decRef(). Here is the call graph for this function: ![]() |
|
|
Customized overloaded operator new (it only allocates memory). This is used when a new object derived from RefCounter is constructed dynamically using the 'new'-operator. RefCounter needs to distinguish between instancess allocated on the heap and instances allocated on the stack. This is the place where it is performed.
Definition at line 24 of file refcounter.cpp. References mTmpHeapPtrs. |
|
|
Definition at line 53 of file refcounter.h. |
|
|
Definition at line 48 of file refcounter.h. Referenced by isHeapAllocated(), and RefCounter(). |
|
|
Definition at line 47 of file refcounter.h. Referenced by decRef(), getRefCount(), and incRef(). |
|
|
Definition at line 51 of file refcounter.h. Referenced by operator new(), and RefCounter(). |
1.4.5