Home | History | Annotate | Download | only in src

Lines Matching refs:p_

39   inline SmartPointerBase() : p_(NULL) {}
42 explicit inline SmartPointerBase(T* ptr) : p_(ptr) {}
47 : p_(rhs.p_) {
48 const_cast<SmartPointerBase<Deallocator, T>&>(rhs).p_ = NULL;
54 inline ~SmartPointerBase() { if (p_) Deallocator::Delete(p_); }
56 inline T* operator->() const { return p_; }
59 inline T* operator*() { return p_; }
63 return p_[i];
68 return p_[i];
80 T* temp = p_;
81 p_ = NULL;
86 if (p_) Deallocator::Delete(p_);
87 p_ = new_value;
96 T* tmp = rhs.p_; // swap to handle self-assignment
97 const_cast<SmartPointerBase<Deallocator, T>&>(rhs).p_ = NULL;
98 p_ = tmp;
102 inline bool is_empty() { return p_ == NULL; }
105 T* p_;