Lines Matching refs:RefPtr
36 template <typename T> class RefPtr : public FastAllocBase {
38 RefPtr() : m_ptr(0) { } in RefPtr() function
39 RefPtr(T* ptr) : m_ptr(ptr) { if (ptr) ptr->ref(); } in RefPtr() function
40 RefPtr(const RefPtr& o) : m_ptr(o.m_ptr) { if (T* ptr = m_ptr) ptr->ref(); } in RefPtr() function
42 template <typename U> RefPtr(const PassRefPtr<U>&);
45 RefPtr(PlacementNewAdoptType) { } in RefPtr() function
48 RefPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } in RefPtr() function
51 ~RefPtr() { if (T* ptr = m_ptr) ptr->deref(); } in ~RefPtr()
53 …template <typename U> RefPtr(const RefPtr<U>& o) : m_ptr(o.get()) { if (T* ptr = m_ptr) ptr->ref()… in RefPtr() function
69 typedef T* RefPtr::*UnspecifiedBoolType;
70 operator UnspecifiedBoolType() const { return m_ptr ? &RefPtr::m_ptr : 0; } in UnspecifiedBoolType()
73 RefPtr& operator=(const RefPtr&);
74 RefPtr& operator=(T*);
75 RefPtr& operator=(const PassRefPtr<T>&);
76 template <typename U> RefPtr& operator=(const RefPtr<U>&);
77 template <typename U> RefPtr& operator=(const PassRefPtr<U>&);
79 void swap(RefPtr&);
87 template <typename T> template <typename U> inline RefPtr<T>::RefPtr(const PassRefPtr<U>& o) in RefPtr() function
92 template <typename T> inline RefPtr<T>& RefPtr<T>::operator=(const RefPtr<T>& o)
104 …template <typename T> template <typename U> inline RefPtr<T>& RefPtr<T>::operator=(const RefPtr<U>…
116 template <typename T> inline RefPtr<T>& RefPtr<T>::operator=(T* optr)
127 template <typename T> inline RefPtr<T>& RefPtr<T>::operator=(const PassRefPtr<T>& o)
136 …template <typename T> template <typename U> inline RefPtr<T>& RefPtr<T>::operator=(const PassRefPt…
145 template <class T> inline void RefPtr<T>::swap(RefPtr<T>& o) in swap()
150 template <class T> inline void swap(RefPtr<T>& a, RefPtr<T>& b) in swap()
155 template <typename T, typename U> inline bool operator==(const RefPtr<T>& a, const RefPtr<U>& b)
160 template <typename T, typename U> inline bool operator==(const RefPtr<T>& a, U* b)
165 template <typename T, typename U> inline bool operator==(T* a, const RefPtr<U>& b)
170 template <typename T, typename U> inline bool operator!=(const RefPtr<T>& a, const RefPtr<U>& b)
175 template <typename T, typename U> inline bool operator!=(const RefPtr<T>& a, U* b)
180 template <typename T, typename U> inline bool operator!=(T* a, const RefPtr<U>& b)
185 template <typename T, typename U> inline RefPtr<T> static_pointer_cast(const RefPtr<U>& p) in static_pointer_cast()
187 return RefPtr<T>(static_cast<T*>(p.get())); in static_pointer_cast()
190 template <typename T, typename U> inline RefPtr<T> const_pointer_cast(const RefPtr<U>& p) in const_pointer_cast()
192 return RefPtr<T>(const_cast<T*>(p.get())); in const_pointer_cast()
195 template <typename T> inline T* getPtr(const RefPtr<T>& p) in getPtr()
202 using WTF::RefPtr;