Lines Matching refs:other
69 sp(T* other); // NOLINT, implicit
70 sp(const sp<T>& other);
71 template<typename U> sp(U* other); // NOLINT, implicit
72 template<typename U> sp(const sp<U>& other); // NOLINT, implicit
78 sp& operator = (T* other);
79 sp& operator = (const sp<T>& other);
81 template<typename U> sp& operator = (const sp<U>& other);
82 template<typename U> sp& operator = (U* other);
85 void force_set(T* other);
122 sp<T>::sp(T* other) in sp() argument
123 : m_ptr(other) in sp()
125 if (other) other->incStrong(this); in sp()
129 sp<T>::sp(const sp<T>& other) in sp() argument
130 : m_ptr(other.m_ptr) in sp()
136 sp<T>::sp(U* other) : m_ptr(other) in sp() argument
138 if (other) ((T*)other)->incStrong(this); in sp()
142 sp<T>::sp(const sp<U>& other) in sp() argument
143 : m_ptr(other.m_ptr) in sp()
155 sp<T>& sp<T>::operator = (const sp<T>& other) {
156 T* otherPtr(other.m_ptr);
164 sp<T>& sp<T>::operator = (T* other)
166 if (other) other->incStrong(this);
168 m_ptr = other;
173 sp<T>& sp<T>::operator = (const sp<U>& other)
175 T* otherPtr(other.m_ptr);
183 sp<T>& sp<T>::operator = (U* other)
185 if (other) ((T*)other)->incStrong(this);
187 m_ptr = other;
192 void sp<T>::force_set(T* other) in force_set() argument
194 other->forceIncStrong(this); in force_set()
195 m_ptr = other; in force_set()