CReferenceSmartPtr Class Reference#include <ReferenceCounting.h>
Collaboration diagram for CReferenceSmartPtr:
![]()
Detailed DescriptionDefinition at line 117 of file ReferenceCounting.h. Constructor & Destructor Documentation
Definition at line 49 of file ReferenceCounting.cpp. 00050 : m_pCounter(pCounter) 00051 { 00052 //Do we need to add 00053 if (bAutoAdd) 00054 //Add the ref 00055 AddRef(); 00056 }
Definition at line 58 of file ReferenceCounting.cpp. 00059 { 00060 //Release the ref 00061 ReleaseRef(); 00062 }
Member Function Documentation
Definition at line 77 of file ReferenceCounting.cpp. 00078 { 00079 if (m_pCounter) 00080 return m_pCounter->AddRef(); 00081 else 00082 return 0; 00083 }
Definition at line 64 of file ReferenceCounting.cpp. 00065 { 00066 //Save to tmp 00067 const CReferenceCounting* pTmp; 00068 pTmp=m_pCounter; 00069 00070 //Clear out var 00071 m_pCounter=NULL; 00072 00073 //Done 00074 return pTmp; 00075 }
Definition at line 85 of file ReferenceCounting.cpp. 00086 { 00087 if (m_pCounter) 00088 return m_pCounter->ReleaseRef(); 00089 else 00090 return 0; 00091 }
The documentation for this class was generated from the following files: |