Lines Matching refs:other
112 SharedPtr (const SharedPtr<T>& other);
119 explicit SharedPtr (const SharedPtr<Y>& other);
122 explicit SharedPtr (const WeakPtr<Y>& other);
127 SharedPtr& operator= (const SharedPtr<Y>& other);
128 SharedPtr& operator= (const SharedPtr<T>& other);
131 SharedPtr& operator= (const WeakPtr<Y>& other);
139 void swap (SharedPtr<T>& other);
148 void acquireFromWeak (const WeakPtr<T>& other);
177 WeakPtr (const WeakPtr<T>& other);
179 explicit WeakPtr (const SharedPtr<T>& other);
182 WeakPtr& operator= (const WeakPtr<T>& other);
183 WeakPtr& operator= (const SharedPtr<T>& other);
277 * \param other Pointer to be shared.
280 inline SharedPtr<T>::SharedPtr (const SharedPtr<T>& other)
281 : m_ptr (other.m_ptr)
282 , m_state (other.m_state)
289 * \param other Pointer to be shared.
295 inline SharedPtr<T>::SharedPtr (const SharedPtr<Y>& other)
296 : m_ptr (other.m_ptr)
297 , m_state (other.m_state)
304 * \param other Pointer to be shared.
310 inline SharedPtr<T>::SharedPtr (const WeakPtr<Y>& other)
314 acquireFromWeak(other);
324 * \brief Assign from other shared pointer.
325 * \param other Pointer to be shared.
335 inline SharedPtr<T>& SharedPtr<T>::operator= (const SharedPtr<Y>& other)
337 if (m_state == other.m_state)
343 // Copy from other and acquire reference.
344 m_ptr = other.m_ptr;
345 m_state = other.m_state;
353 * \brief Assign from other shared pointer.
354 * \param other Pointer to be shared.
361 inline SharedPtr<T>& SharedPtr<T>::operator= (const SharedPtr<T>& other)
363 if (m_state == other.m_state)
369 // Copy from other and acquire reference.
370 m_ptr = other.m_ptr;
371 m_state = other.m_state;
380 * \param other Weak reference.
396 inline SharedPtr<T>& SharedPtr<T>::operator= (const WeakPtr<Y>& other)
398 if (m_state == other.m_state)
402 SharedPtr<T> sharedOther(other);
403 *this = other;
447 inline void SharedPtr<T>::swap (SharedPtr<T>& other)
450 swap(m_ptr, other.m_ptr);
451 swap(m_state, other.m_state);
545 * \brief Construct weak pointer from other weak reference.
546 * \param other Weak reference.
549 inline WeakPtr<T>::WeakPtr (const WeakPtr<T>& other)
550 : m_ptr (other.m_ptr)
551 , m_state (other.m_state)
558 * \param other Shared pointer.
561 inline WeakPtr<T>::WeakPtr (const SharedPtr<T>& other)
562 : m_ptr (other.m_ptr)
563 , m_state (other.m_state)
576 * \param other Weak reference.
580 * to the object pointed by other is taken.
583 inline WeakPtr<T>& WeakPtr<T>::operator= (const WeakPtr<T>& other)
585 if (this == &other)
590 m_ptr = other.m_ptr;
591 m_state = other.m_state;
600 * \param other Shared pointer.
604 * to the object pointed by other is taken.
607 inline WeakPtr<T>& WeakPtr<T>::operator= (const SharedPtr<T>& other)
611 m_ptr = other.m_ptr;
612 m_state = other.m_state;