Lines Matching refs:WeakPtr
85 template <typename T> class WeakPtr; variable
182 static WeakPtr<Derived> StaticAsWeakPtr(Derived* t) { in StaticAsWeakPtr()
194 static WeakPtr<Derived> AsWeakPtrImpl(SupportsWeakPtr<Base>* t) { in AsWeakPtrImpl()
195 WeakPtr<Base> ptr = t->AsWeakPtr(); in AsWeakPtrImpl()
196 return WeakPtr<Derived>( in AsWeakPtrImpl()
219 class WeakPtr : public internal::WeakPtrBase {
221 WeakPtr() = default;
223 WeakPtr(std::nullptr_t) {} in WeakPtr() function
228 WeakPtr(const WeakPtr<U>& other) : WeakPtrBase(other) { in WeakPtr() function
235 WeakPtr(WeakPtr<U>&& other) : WeakPtrBase(std::move(other)) { in WeakPtr() function
260 template <typename U> friend class WeakPtr; variable
264 WeakPtr(const internal::WeakReference& ref, T* ptr) in WeakPtr() function
270 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
274 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
278 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
282 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
309 WeakPtr<T> GetWeakPtr() { in GetWeakPtr()
310 return WeakPtr<T>(weak_reference_owner_.GetRef(), in GetWeakPtr()
340 WeakPtr<T> AsWeakPtr() { in AsWeakPtr()
341 return WeakPtr<T>(weak_reference_owner_.GetRef(), static_cast<T*>(this)); in AsWeakPtr()
371 WeakPtr<Derived> AsWeakPtr(Derived* t) { in AsWeakPtr()