Lines Matching refs:m_pCnt

192     /* ctor */  SharedPtr() : m_pObj( NULL ), m_pCnt( NULL ), m_pAllocator( NULL ) {}  in SharedPtr()
203 m_pCnt( pCnt ), in m_pObj()
208 m_pCnt = NULL; in m_pObj()
212 if ( m_pCnt == NULL ) in m_pObj()
214 m_pCnt = SharedPtrCount<TLockObject>::Create( pAllocator ); in m_pObj()
216 m_pCnt->AddRef(); in m_pObj()
217 m_pCnt->WeakAddRef(); in m_pObj()
227 m_pCnt( other.m_pCnt ), in SharedPtr()
230 if (m_pCnt) in SharedPtr()
232 m_pCnt->AddRef(); in SharedPtr()
244 m_pCnt( other.m_pCnt ),
247 if (m_pCnt)
249 m_pCnt->AddRef();
260 m_pCnt( other.m_pCnt ), in SharedPtr()
263 if (m_pCnt && m_pCnt->TestAddRef()) in SharedPtr()
268 m_pCnt = NULL; in SharedPtr()
279 if ( m_pCnt ) in ~SharedPtr()
281 if ( ! m_pCnt->Release() ) in ~SharedPtr()
293 if ( ! m_pCnt->WeakRelease() ) in ~SharedPtr()
295 m_pCnt->Destroy(); in ~SharedPtr()
379 if (m_pCnt == NULL) { return 0; } in RefCount()
380 return m_pCnt->GetUseCount(); in RefCount()
393 std::swap( m_pCnt, other.m_pCnt ); in SwapObjPtr()
398 SharedPtrCount<TLockObject>* m_pCnt; variable
453 /* ctor */ WeakPtr() : m_pObj( NULL ), m_pCnt( NULL ), m_pAllocator( NULL ) in WeakPtr()
465 m_pCnt( other.m_pCnt ),
468 if (m_pCnt)
470 m_pCnt->WeakAddRef();
481 m_pCnt( other.m_pCnt ), in WeakPtr()
484 if (m_pCnt) in WeakPtr()
486 m_pCnt->WeakAddRef(); in WeakPtr()
498 m_pCnt( other.m_pCnt ),
501 if (m_pCnt)
503 m_pCnt->WeakAddRef();
512 if ( m_pCnt ) in ~WeakPtr()
514 if ( ! m_pCnt->WeakRelease() ) in ~WeakPtr()
516 m_pCnt->Destroy(); in ~WeakPtr()
587 std::swap( m_pCnt, other.m_pCnt ); in SwapObjPtr()
592 SharedPtrCount<TLockObject>* m_pCnt; variable