#include <TCSharedPtrImpl.h>
Public Member Functions | |
WeakPtrCount () | |
WeakPtrCount (const WeakPtrCount &r) | |
Copy constructor. | |
WeakPtrCount (const SharedPtrCount &r) | |
Construct a WeakPtrCount out of an SharedPtrCount. | |
~WeakPtrCount () | |
Destructor releases the internal weak counter. | |
WeakPtrCount & | operator= (const SharedPtrCount &r) |
Assignment operator with an SharedPtrCount. | |
WeakPtrCount & | operator= (const WeakPtrCount &r) |
Assignment operator with an other WeakPtrCount. | |
uint32 | GetUseCount () const |
Get current use count. | |
void | Swap (WeakPtrCount &a) |
Swapt two weak counters. | |
Private Attributes | |
Impl::SharedPtrCountBase * | m_count |
Pointer to the counting object. | |
Friends | |
class | TC::SharedPtrCount |
bool | operator== (const WeakPtrCount &a, const WeakPtrCount &b) |
Compare two counters if equal. | |
bool | operator< (const WeakPtrCount &a, const WeakPtrCount &b) |
Compare two counters if less. |
Definition at line 256 of file TCSharedPtrImpl.h.
TC::WeakPtrCount::WeakPtrCount | ( | ) | [inline] |
Definition at line 259 of file TCSharedPtrImpl.h.
TC::WeakPtrCount::WeakPtrCount | ( | const WeakPtrCount & | r | ) | [inline, explicit] |
Copy constructor.
Definition at line 262 of file TCSharedPtrImpl.h.
References TC::Impl::SharedPtrCountBase::AddWeakReference(), and m_count.
TC::WeakPtrCount::WeakPtrCount | ( | const SharedPtrCount & | r | ) | [inline, explicit] |
Construct a WeakPtrCount out of an SharedPtrCount.
Definition at line 268 of file TCSharedPtrImpl.h.
References TC::Impl::SharedPtrCountBase::AddWeakReference(), and m_count.
TC::WeakPtrCount::~WeakPtrCount | ( | ) | [inline] |
Destructor releases the internal weak counter.
Definition at line 274 of file TCSharedPtrImpl.h.
References m_count, and TC::Impl::SharedPtrCountBase::ReleaseWeakReference().
WeakPtrCount& TC::WeakPtrCount::operator= | ( | const SharedPtrCount & | r | ) | [inline] |
Assignment operator with an SharedPtrCount.
Definition at line 284 of file TCSharedPtrImpl.h.
References TC::Impl::SharedPtrCountBase::AddWeakReference(), m_count, TC::SharedPtrCount::m_count, and TC::Impl::SharedPtrCountBase::ReleaseWeakReference().
WeakPtrCount& TC::WeakPtrCount::operator= | ( | const WeakPtrCount & | r | ) | [inline] |
Assignment operator with an other WeakPtrCount.
Definition at line 294 of file TCSharedPtrImpl.h.
References TC::Impl::SharedPtrCountBase::AddWeakReference(), m_count, and TC::Impl::SharedPtrCountBase::ReleaseWeakReference().
uint32 TC::WeakPtrCount::GetUseCount | ( | ) | const [inline] |
Get current use count.
Definition at line 304 of file TCSharedPtrImpl.h.
References TC::Impl::SharedPtrCountBase::GetUseCount(), and m_count.
Referenced by TC::WeakPtr< T >::GetUseCount(), and TC::WeakPtr< T >::IsExpired().
void TC::WeakPtrCount::Swap | ( | WeakPtrCount & | a | ) | [inline] |
Swapt two weak counters.
Definition at line 310 of file TCSharedPtrImpl.h.
References m_count.
Referenced by TC::WeakPtr< T >::Swap().
friend class TC::SharedPtrCount [friend] |
Definition at line 330 of file TCSharedPtrImpl.h.
bool operator== | ( | const WeakPtrCount & | a, | |
const WeakPtrCount & | b | |||
) | [friend] |
bool operator< | ( | const WeakPtrCount & | a, | |
const WeakPtrCount & | b | |||
) | [friend] |
Pointer to the counting object.
Definition at line 329 of file TCSharedPtrImpl.h.
Referenced by GetUseCount(), operator=(), Swap(), WeakPtrCount(), and ~WeakPtrCount().