Lines Matching refs:other

413     static inline wp<T> fromExisting(T* other);
419 wp(T* other); // NOLINT(implicit)
421 wp(U* other); // NOLINT(implicit)
422 wp& operator=(T* other);
424 wp& operator=(U* other);
427 wp(const wp<T>& other);
428 explicit wp(const sp<T>& other);
430 template<typename U> wp(const sp<U>& other); // NOLINT(implicit)
431 template<typename U> wp(const wp<U>& other); // NOLINT(implicit)
437 wp& operator = (const wp<T>& other);
438 wp& operator = (const sp<T>& other);
440 template<typename U> wp& operator = (const wp<U>& other);
441 template<typename U> wp& operator = (const sp<U>& other);
443 void set_object_and_refs(T* other, weakref_type* refs);
541 wp<T> wp<T>::fromExisting(T* other) { in fromExisting() argument
542 if (!other) return nullptr; in fromExisting()
544 auto refs = other->getWeakRefs(); in fromExisting()
545 refs->incWeakRequireWeak(other); in fromExisting()
548 ret.m_ptr = other; in fromExisting()
555 wp<T>::wp(T* other) in wp() argument
556 : m_ptr(other) in wp()
558 m_refs = other ? m_refs = other->createWeak(this) : nullptr; in wp()
563 wp<T>::wp(U* other) : m_ptr(other) { in wp() argument
564 m_refs = other ? other->createWeak(this) : nullptr; in wp()
568 wp<T>& wp<T>::operator=(T* other) {
569 weakref_type* newRefs = other ? other->createWeak(this) : nullptr;
571 m_ptr = other;
578 wp<T>& wp<T>::operator=(U* other) {
579 weakref_type* newRefs = other ? other->createWeak(this) : 0;
581 m_ptr = other;
588 wp<T>::wp(const wp<T>& other) in wp() argument
589 : m_ptr(other.m_ptr), m_refs(other.m_refs) in wp()
595 wp<T>::wp(const sp<T>& other) in wp() argument
596 : m_ptr(other.m_ptr) in wp()
602 wp<T>::wp(const wp<U>& other) in wp() argument
603 : m_ptr(other.m_ptr) in wp()
606 m_refs = other.m_refs; in wp()
614 wp<T>::wp(const sp<U>& other) in wp() argument
615 : m_ptr(other.m_ptr) in wp()
627 wp<T>& wp<T>::operator = (const wp<T>& other)
629 weakref_type* otherRefs(other.m_refs);
630 T* otherPtr(other.m_ptr);
639 wp<T>& wp<T>::operator = (const sp<T>& other)
642 other != nullptr ? other->createWeak(this) : nullptr;
643 T* otherPtr(other.m_ptr);
651 wp<T>& wp<T>::operator = (const wp<U>& other)
653 weakref_type* otherRefs(other.m_refs);
654 U* otherPtr(other.m_ptr);
663 wp<T>& wp<T>::operator = (const sp<U>& other)
666 other != nullptr ? other->createWeak(this) : 0;
667 U* otherPtr(other.m_ptr);
675 void wp<T>::set_object_and_refs(T* other, weakref_type* refs) in set_object_and_refs() argument
677 if (other) refs->incWeak(this); in set_object_and_refs()
679 m_ptr = other; in set_object_and_refs()