Go to the source code of this file.
#define _helper_common_implementation_ |
( |
|
N | ) |
|
#define _refcounting_implementation_ |
Value:public: \ \
virtual unsigned long addRef() { return ++m_refCount; } \ \
virtual unsigned long release() { \
\
const unsigned long count = (m_refCount) ? --m_refCount : m_refCount; \
if(count == 0) delete this; \
return count; \
} \ \
virtual unsigned long refCount() const { return m_refCount; } \
protected: \ \
unsigned
long m_refCount;
\
Definition at line 44 of file implements.h.