Lines Matching refs:SmartPointerBase
14 class SmartPointerBase {
17 SmartPointerBase() : p_(NULL) {} in SmartPointerBase() function
20 explicit SmartPointerBase(T* ptr) : p_(ptr) {} in SmartPointerBase() function
24 SmartPointerBase(const SmartPointerBase<Deallocator, T>& rhs) : p_(rhs.p_) { in SmartPointerBase() function
25 const_cast<SmartPointerBase<Deallocator, T>&>(rhs).p_ = NULL; in SmartPointerBase()
63 SmartPointerBase<Deallocator, T>& operator=(
64 const SmartPointerBase<Deallocator, T>& rhs) {
67 const_cast<SmartPointerBase<Deallocator, T>&>(rhs).p_ = NULL;
78 ~SmartPointerBase() { in ~SmartPointerBase()
96 class SmartArrayPointer : public SmartPointerBase<ArrayDeallocator<T>, T> {
100 : SmartPointerBase<ArrayDeallocator<T>, T>(ptr) {} in SmartArrayPointer()
102 : SmartPointerBase<ArrayDeallocator<T>, T>(rhs) {} in SmartArrayPointer()
112 class SmartPointer : public SmartPointerBase<ObjectDeallocator<T>, T> {
116 : SmartPointerBase<ObjectDeallocator<T>, T>(ptr) {} in SmartPointer()
118 : SmartPointerBase<ObjectDeallocator<T>, T>(rhs) {} in SmartPointer()