Lines Matching refs:other
63 sp(T* other);
64 sp(const sp<T>& other);
65 template<typename U> sp(U* other);
66 template<typename U> sp(const sp<U>& other);
72 sp& operator = (T* other);
73 sp& operator = (const sp<T>& other);
75 template<typename U> sp& operator = (const sp<U>& other);
76 template<typename U> sp& operator = (U* other);
79 void force_set(T* other);
113 sp<T>::sp(T* other)
114 : m_ptr(other) {
115 if (other)
116 other->incStrong(this);
120 sp<T>::sp(const sp<T>& other)
121 : m_ptr(other.m_ptr) {
127 sp<T>::sp(U* other)
128 : m_ptr(other) {
129 if (other)
130 ((T*) other)->incStrong(this);
134 sp<T>::sp(const sp<U>& other)
135 : m_ptr(other.m_ptr) {
147 sp<T>& sp<T>::operator =(const sp<T>& other) {
148 T* otherPtr(other.m_ptr);
158 sp<T>& sp<T>::operator =(T* other) {
159 if (other)
160 other->incStrong(this);
163 m_ptr = other;
168 sp<T>& sp<T>::operator =(const sp<U>& other) {
169 T* otherPtr(other.m_ptr);
179 sp<T>& sp<T>::operator =(U* other) {
180 if (other)
181 ((T*) other)->incStrong(this);
184 m_ptr = other;
189 void sp<T>::force_set(T* other) {
190 other->forceIncStrong(this);
191 m_ptr = other;