Home | History | Annotate | Download | only in utils

Lines Matching full:other

181     sp(T* other);
182 sp(const sp<T>& other);
183 template<typename U> sp(U* other);
184 template<typename U> sp(const sp<U>& other);
190 sp& operator = (T* other);
191 sp& operator = (const sp<T>& other);
193 template<typename U> sp& operator = (const sp<U>& other);
194 template<typename U> sp& operator = (U* other);
197 void force_set(T* other);
241 wp(T* other);
242 wp(const wp<T>& other);
243 wp(const sp<T>& other);
244 template<typename U> wp(U* other);
245 template<typename U> wp(const sp<U>& other);
246 template<typename U> wp(const wp<U>& other);
252 wp& operator = (T* other);
253 wp& operator = (const wp<T>& other);
254 wp& operator = (const sp<T>& other);
256 template<typename U> wp& operator = (U* other);
257 template<typename U> wp& operator = (const wp<U>& other);
258 template<typename U> wp& operator = (const sp<U>& other);
260 void set_object_and_refs(T* other, weakref_type* refs);
302 sp<T>::sp(T* other)
303 : m_ptr(other)
305 if (other) other->incStrong(this);
309 sp<T>::sp(const sp<T>& other)
310 : m_ptr(other.m_ptr)
316 sp<T>::sp(U* other) : m_ptr(other)
318 if (other) other->incStrong(this);
322 sp<T>::sp(const sp<U>& other)
323 : m_ptr(other.m_ptr)
335 sp<T>& sp<T>::operator = (const sp<T>& other) {
336 if (other.m_ptr) other.m_ptr->incStrong(this);
338 m_ptr = other.m_ptr;
343 sp<T>& sp<T>::operator = (T* other)
345 if (other) other->incStrong(this);
347 m_ptr = other;
352 sp<T>& sp<T>::operator = (const sp<U>& other)
354 if (other.m_ptr) other.m_ptr->incStrong(this);
356 m_ptr = other.m_ptr;
361 sp<T>& sp<T>::operator = (U* other)
363 if (other) other->incStrong(this);
365 m_ptr = other;
370 void sp<T>::force_set(T* other)
372 other->forceIncStrong(this);
373 m_ptr = other;
401 wp<T>::wp(T* other)
402 : m_ptr(other)
404 if (other) m_refs = other->createWeak(this);
408 wp<T>::wp(const wp<T>& other)
409 : m_ptr(other.m_ptr), m_refs(other.m_refs)
415 wp<T>::wp(const sp<T>& other)
416 : m_ptr(other.m_ptr)
424 wp<T>::wp(U* other)
425 : m_ptr(other)
427 if (other) m_refs = other->createWeak(this);
431 wp<T>::wp(const wp<U>& other)
432 : m_ptr(other.m_ptr)
435 m_refs = other.m_refs;
441 wp<T>::wp(const sp<U>& other)
442 : m_ptr(other.m_ptr)
456 wp<T>& wp<T>::operator = (T* other)
459 other ? other->createWeak(this) : 0;
461 m_ptr = other;
467 wp<T>& wp<T>::operator = (const wp<T>& other)
469 if (other.m_ptr) other.m_refs->incWeak(this);
471 m_ptr = other.m_ptr;
472 m_refs = other.m_refs;
477 wp<T>& wp<T>::operator = (const sp<T>& other)
480 other != NULL ? other->createWeak(this) : 0;
482 m_ptr = other.get();
488 wp<T>& wp<T>::operator = (U* other)
491 other ? other->createWeak(this) : 0;
493 m_ptr = other;
499 wp<T>& wp<T>::operator = (const wp<U>& other)
501 if (other.m_ptr) other.m_refs->incWeak(this);
503 m_ptr = other.m_ptr;
504 m_refs = other.m_refs;
509 wp<T>& wp<T>::operator = (const sp<U>& other)
512 other != NULL ? other->createWeak(this) : 0;
514 m_ptr = other.get();
520 void wp<T>::set_object_and_refs(T* other, weakref_type* refs)
522 if (other) refs->incWeak(this);
524 m_ptr = other;