44 GUILOG(GUI_TRACE_WARNING,
"RefCounted::~RefCounted: reference count not 0.");
50 eC_Atomic::increment(&m_iRefCount);
60 eC_Int newCount = eC_Atomic::decrement(&m_iRefCount);
76 inline bool Unique()
const {
return (m_iRefCount == 1); }
86 inline eC_Int
RefCount()
const {
return static_cast<eC_Int
const volatile &
>(m_iRefCount); }
89 mutable eC_Int m_iRefCount;
The reference counted pointer class used with SharedPtr.
Definition: RefCounted.h:32
bool Unique() const
Definition: RefCounted.h:76
void AddRef()
Increase reference count.
Definition: RefCounted.h:48
eC_Int RefCount() const
Definition: RefCounted.h:86
void Release()
Definition: RefCounted.h:58
virtual ~RefCounted()
Destroy reference counted object.
Definition: RefCounted.h:41
RefCounted()
Create RefCounted object. The reference count is initialized to 0.
Definition: RefCounted.h:35
Contains pointer class templates.
Definition: GUIRefCntPtr.h:17