Lines Matching refs:m_p
493 Ptr() : m_p( CATCH_NULL ){} in Ptr()
494 Ptr( T* p ) : m_p( p ){ in Ptr()
495 if( m_p ) in Ptr()
496 m_p->addRef(); in Ptr()
498 Ptr( Ptr const& other ) : m_p( other.m_p ){ in Ptr()
499 if( m_p ) in Ptr()
500 m_p->addRef(); in Ptr()
503 if( m_p ) in ~Ptr()
504 m_p->release(); in ~Ptr()
507 if( m_p ) in reset()
508 m_p->release(); in reset()
509 m_p = CATCH_NULL; in reset()
521 void swap( Ptr& other ) { std::swap( m_p, other.m_p ); } in swap()
522 T* get() const{ return m_p; } in get()
523 T& operator*() const { return *m_p; } in operator *()
524 T* operator->() const { return m_p; } in operator ->()
525 bool operator !() const { return m_p == CATCH_NULL; } in operator !()
526 operator SafeBool::type() const { return SafeBool::makeSafe( m_p != CATCH_NULL ); } in operator SafeBool::type()
529 T* m_p; member in Catch::Ptr