Chromium Embedded Framework (CEF)
126.2.0+g5c56e98+chromium-126.0.6478.62
|
A class may be composed of a WeakPtrFactory and thereby control how it exposes weak pointers to itself. More...
#include "include/base/cef_weak_ptr.h"
Public Member Functions | |
WeakPtrFactory ()=delete | |
WeakPtrFactory (T *ptr) | |
WeakPtrFactory (const WeakPtrFactory &)=delete | |
WeakPtrFactory & | operator= (const WeakPtrFactory &)=delete |
~WeakPtrFactory ()=default | |
WeakPtr< T > | GetWeakPtr () const |
void | InvalidateWeakPtrs () |
Call this method to invalidate all existing weak pointers. More... | |
bool | HasWeakPtrs () const |
Call this method to determine if any weak pointers exist. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from base::cef_internal::WeakPtrFactoryBase | |
WeakPtrFactoryBase (uintptr_t ptr) | |
~WeakPtrFactoryBase () | |
Protected Attributes inherited from base::cef_internal::WeakPtrFactoryBase | |
cef_internal::WeakReferenceOwner | weak_reference_owner_ |
uintptr_t | ptr_ |
A class may be composed of a WeakPtrFactory and thereby control how it exposes weak pointers to itself.
This is helpful if you only need weak pointers within the implementation of a class. This class is also useful when working with primitive types. For example, you could have a WeakPtrFactory<bool> that is used to pass around a weak reference to a bool.
|
delete |
|
inlineexplicit |
|
delete |
|
default |
|
inline |
|
inline |
Call this method to determine if any weak pointers exist.
|
inline |
Call this method to invalidate all existing weak pointers.
|
delete |