Lines Matching refs:other
67 sp(T* other);
68 sp(const sp<T>& other);
69 template<typename U> sp(U* other);
70 template<typename U> sp(const sp<U>& other);
76 sp& operator = (T* other);
77 sp& operator = (const sp<T>& other);
79 template<typename U> sp& operator = (const sp<U>& other);
80 template<typename U> sp& operator = (U* other);
83 void force_set(T* other);
120 sp<T>::sp(T* other) in sp() argument
121 : m_ptr(other) in sp()
123 if (other) other->incStrong(this); in sp()
127 sp<T>::sp(const sp<T>& other) in sp() argument
128 : m_ptr(other.m_ptr) in sp()
134 sp<T>::sp(U* other) : m_ptr(other) in sp() argument
136 if (other) ((T*)other)->incStrong(this); in sp()
140 sp<T>::sp(const sp<U>& other) in sp() argument
141 : m_ptr(other.m_ptr) in sp()
153 sp<T>& sp<T>::operator = (const sp<T>& other) {
154 T* otherPtr(other.m_ptr);
162 sp<T>& sp<T>::operator = (T* other)
164 if (other) other->incStrong(this);
166 m_ptr = other;
171 sp<T>& sp<T>::operator = (const sp<U>& other)
173 T* otherPtr(other.m_ptr);
181 sp<T>& sp<T>::operator = (U* other)
183 if (other) ((T*)other)->incStrong(this);
185 m_ptr = other;
190 void sp<T>::force_set(T* other) in force_set() argument
192 other->forceIncStrong(this); in force_set()
193 m_ptr = other; in force_set()