Lines Matching defs:p_
16 SmartPointerBase() : p_(NULL) {}
19 explicit SmartPointerBase(T* ptr) : p_(ptr) {}
24 : p_(rhs.p_) {
25 const_cast<SmartPointerBase<Deallocator, T>&>(rhs).p_ = NULL;
28 T* operator->() const { return p_; }
30 T& operator*() const { return *p_; }
32 T* get() const { return p_; }
36 return p_[i];
41 return p_[i];
53 T* temp = p_;
54 p_ = NULL;
59 DCHECK(p_ == NULL || p_ != new_value);
60 if (p_) Deallocator::Delete(p_);
61 p_ = new_value;
70 T* tmp = rhs.p_; // swap to handle self-assignment
71 const_cast<SmartPointerBase<Deallocator, T>&>(rhs).p_ = NULL;
72 p_ = tmp;
76 bool is_empty() const { return p_ == NULL; }
82 ~SmartPointerBase() { if (p_) Deallocator::Delete(p_); }
85 T* p_;