Lines Matching refs:other
63 sp(T* other);
64 sp(const sp<T>& other);
65 sp(sp<T>&& other);
66 template<typename U> sp(U* other);
67 template<typename U> sp(const sp<U>& other);
68 template<typename U> sp(sp<U>&& other);
74 sp& operator = (T* other);
75 sp& operator = (const sp<T>& other);
76 sp& operator = (sp<T>&& other);
78 template<typename U> sp& operator = (const sp<U>& other);
79 template<typename U> sp& operator = (sp<U>&& other);
80 template<typename U> sp& operator = (U* other);
83 void force_set(T* other);
117 sp<T>::sp(T* other)
118 : m_ptr(other) {
119 if (other)
120 other->incStrong(this);
124 sp<T>::sp(const sp<T>& other)
125 : m_ptr(other.m_ptr) {
131 sp<T>::sp(sp<T>&& other)
132 : m_ptr(other.m_ptr) {
133 other.m_ptr = nullptr;
137 sp<T>::sp(U* other)
138 : m_ptr(other) {
139 if (other)
140 ((T*) other)->incStrong(this);
144 sp<T>::sp(const sp<U>& other)
145 : m_ptr(other.m_ptr) {
151 sp<T>::sp(sp<U>&& other)
152 : m_ptr(other.m_ptr) {
153 other.m_ptr = nullptr;
163 sp<T>& sp<T>::operator =(const sp<T>& other) {
164 T* otherPtr(other.m_ptr);
174 sp<T>& sp<T>::operator =(sp<T>&& other) {
177 m_ptr = other.m_ptr;
178 other.m_ptr = nullptr;
183 sp<T>& sp<T>::operator =(T* other) {
184 if (other)
185 other->incStrong(this);
188 m_ptr = other;
193 sp<T>& sp<T>::operator =(const sp<U>& other) {
194 T* otherPtr(other.m_ptr);
204 sp<T>& sp<T>::operator =(sp<U>&& other) {
207 m_ptr = other.m_ptr;
208 other.m_ptr = nullptr;
213 sp<T>& sp<T>::operator =(U* other) {
214 if (other)
215 ((T*) other)->incStrong(this);
218 m_ptr = other;
223 void sp<T>::force_set(T* other) {
224 other->forceIncStrong(this);
225 m_ptr = other;