Chromium Embedded Framework (CEF)
109.0.1+gcd5e37a+chromium-109.0.5414.8
|
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... | |
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 |