Lines Matching defs:ptr_
220 scoped_refptr() : ptr_(NULL) {
223 scoped_refptr(T* p) : ptr_(p) {
224 if (ptr_)
225 ptr_->AddRef();
228 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
229 if (ptr_)
230 ptr_->AddRef();
234 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
235 if (ptr_)
236 ptr_->AddRef();
240 if (ptr_)
241 ptr_->Release();
244 T* get() const { return ptr_; }
245 operator T*() const { return ptr_; }
246 T* operator->() const { return ptr_; }
254 T* retVal = ptr_;
255 ptr_ = NULL;
263 if (ptr_ )
264 ptr_ ->Release();
265 ptr_ = p;
270 return *this = r.ptr_;
279 T* p = ptr_;
280 ptr_ = *pp;
285 swap(&r.ptr_);
289 T* ptr_;