Lines Matching refs:other

204     wp(T* other);
205 wp(const wp<T>& other);
206 wp(const sp<T>& other);
207 template<typename U> wp(U* other);
208 template<typename U> wp(const sp<U>& other);
209 template<typename U> wp(const wp<U>& other);
215 wp& operator = (T* other);
216 wp& operator = (const wp<T>& other);
217 wp& operator = (const sp<T>& other);
219 template<typename U> wp& operator = (U* other);
220 template<typename U> wp& operator = (const wp<U>& other);
221 template<typename U> wp& operator = (const sp<U>& other);
223 void set_object_and_refs(T* other, weakref_type* refs);
295 wp<T>::wp(T* other)
296 : m_ptr(other)
298 if (other) m_refs = other->createWeak(this);
302 wp<T>::wp(const wp<T>& other)
303 : m_ptr(other.m_ptr), m_refs(other.m_refs)
309 wp<T>::wp(const sp<T>& other)
310 : m_ptr(other.m_ptr)
318 wp<T>::wp(U* other)
319 : m_ptr(other)
321 if (other) m_refs = other->createWeak(this);
325 wp<T>::wp(const wp<U>& other)
326 : m_ptr(other.m_ptr)
329 m_refs = other.m_refs;
335 wp<T>::wp(const sp<U>& other)
336 : m_ptr(other.m_ptr)
350 wp<T>& wp<T>::operator = (T* other)
353 other ? other->createWeak(this) : 0;
355 m_ptr = other;
361 wp<T>& wp<T>::operator = (const wp<T>& other)
363 weakref_type* otherRefs(other.m_refs);
364 T* otherPtr(other.m_ptr);
373 wp<T>& wp<T>::operator = (const sp<T>& other)
376 other != NULL ? other->createWeak(this) : 0;
377 T* otherPtr(other.m_ptr);
385 wp<T>& wp<T>::operator = (U* other)
388 other ? other->createWeak(this) : 0;
390 m_ptr = other;
396 wp<T>& wp<T>::operator = (const wp<U>& other)
398 weakref_type* otherRefs(other.m_refs);
399 U* otherPtr(other.m_ptr);
408 wp<T>& wp<T>::operator = (const sp<U>& other)
411 other != NULL ? other->createWeak(this) : 0;
412 U* otherPtr(other.m_ptr);
420 void wp<T>::set_object_and_refs(T* other, weakref_type* refs)
422 if (other) refs->incWeak(this);
424 m_ptr = other;