#include <ReferenceCount.h>
Inheritance diagram for dchain::ReferenceCount:
Public Member Functions | |
void | addLink () const |
void | addLink () const |
void | dropLink () const |
void | dropLink () const |
ReferenceCount () | |
ReferenceCount () | |
virtual | ~ReferenceCount () |
virtual | ~ReferenceCount () |
Private Member Functions | |
const ReferenceCount & | operator= (const ReferenceCount &) |
const ReferenceCount & | operator= (const ReferenceCount &) |
ReferenceCount (const ReferenceCount &) | |
ReferenceCount (const ReferenceCount &) | |
Private Attributes | |
uint32_t | m_linkCount |
|
00098 : 00099 m_linkCount( 0 ) 00100 { 00101 }
|
|
00074 {}
|
|
|
|
|
|
00074 {}
|
|
|
|
|
|
00108 { 00109 //if (m_linkCount==0xFFFFFFFF) { 00110 // throw TooManyReferencesException(); 00111 //} 00112 ++m_linkCount ; 00113 }
|
|
|
|
00116 { 00117 --m_linkCount ; 00118 if ( 0 == m_linkCount ) { 00119 // It is necessary to throw away the 'const' so that the object 00120 // can be deleted 00121 delete const_cast<ReferenceCount*>(this) ; 00122 } 00123 }
|
|
|
|
|
|
|