Lines Matching defs:ptr_
88 scoped_refptr() : ptr_(NULL) {
91 scoped_refptr(T* p) : ptr_(p) {
92 if (ptr_)
93 ptr_->AddRef();
96 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
97 if (ptr_)
98 ptr_->AddRef();
102 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
103 if (ptr_)
104 ptr_->AddRef();
108 if (ptr_)
109 ptr_->Release();
112 T* get() const { return ptr_; }
113 operator T*() const { return ptr_; }
114 T* operator->() const { return ptr_; }
122 T* retVal = ptr_;
123 ptr_ = NULL;
131 if (ptr_ )
132 ptr_ ->Release();
133 ptr_ = p;
138 return *this = r.ptr_;
147 T* p = ptr_;
148 ptr_ = *pp;
153 swap(&r.ptr_);
157 T* ptr_;