Lines Matching defs:other
45 sp(T* other);
46 sp(const sp<T>& other);
47 template<typename U> sp(U* other);
48 template<typename U> sp(const sp<U>& other);
54 sp& operator = (T* other);
55 sp& operator = (const sp<T>& other);
57 template<typename U> sp& operator = (const sp<U>& other);
58 template<typename U> sp& operator = (U* other);
88 sp<T>::sp(T* other)
89 : m_ptr(other)
91 if (other) other->incStrong(this);
95 sp<T>::sp(const sp<T>& other)
96 : m_ptr(other.m_ptr)
102 sp<T>::sp(U* other) : m_ptr(other)
104 if (other) other->incStrong(this);
108 sp<T>::sp(const sp<U>& other)
109 : m_ptr(other.m_ptr)
121 sp<T>& sp<T>::operator = (const sp<T>& other) {
122 if (other.m_ptr) other.m_ptr->incStrong(this);
124 m_ptr = other.m_ptr;
129 sp<T>& sp<T>::operator = (T* other)
131 if (other) other->incStrong(this);
133 m_ptr = other;
138 sp<T>& sp<T>::operator = (const sp<U>& other)
140 if (other.m_ptr) other.m_ptr->incStrong(this);
142 m_ptr = other.m_ptr;
147 sp<T>& sp<T>::operator = (U* other)
149 if (other) other->incStrong(this);
151 m_ptr = other;