Lines Matching refs:WeakPtr
120 class WeakPtr; variable
222 static WeakPtr<Derived> StaticAsWeakPtr(Derived* t) { in StaticAsWeakPtr()
234 static WeakPtr<Derived> AsWeakPtrImpl(SupportsWeakPtr<Base>* t) { in AsWeakPtrImpl()
235 WeakPtr<Base> ptr = t->AsWeakPtr(); in AsWeakPtrImpl()
236 return WeakPtr<Derived>( in AsWeakPtrImpl()
260 class WeakPtr : public internal::WeakPtrBase {
262 WeakPtr() = default;
263 WeakPtr(std::nullptr_t) {} in WeakPtr() function
268 WeakPtr(const WeakPtr<U>& other) : WeakPtrBase(other) { in WeakPtr() function
275 WeakPtr(WeakPtr<U>&& other) noexcept : WeakPtrBase(std::move(other)) { in WeakPtr() function
315 friend class WeakPtr; variable
319 WeakPtr(const internal::WeakReference& ref, T* ptr) in WeakPtr() function
325 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
329 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
333 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
337 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
369 WeakPtr<T> GetWeakPtr() const { in GetWeakPtr()
370 return WeakPtr<T>(weak_reference_owner_.GetRef(), in GetWeakPtr()
400 WeakPtr<T> AsWeakPtr() { in AsWeakPtr()
401 return WeakPtr<T>(weak_reference_owner_.GetRef(), static_cast<T*>(this)); in AsWeakPtr()
430 WeakPtr<Derived> AsWeakPtr(Derived* t) { in AsWeakPtr()