template <typename T>

class WeakPtrFactory

Defined at line 146 of file ../../src/lib/fxl/memory/weak_ptr.h

Forward declaration, so |WeakPtr

<T

>| can friend it.

Public Methods

void WeakPtrFactory<T> (T * ptr)

Defined at line 148 of file ../../src/lib/fxl/memory/weak_ptr.h

void ~WeakPtrFactory<T> ()

Defined at line 149 of file ../../src/lib/fxl/memory/weak_ptr.h

WeakPtr<T> GetWeakPtr ()

Gets a new weak pointer, which will be valid until either

|InvalidateWeakPtrs()| is called or this object is destroyed.

Defined at line 156 of file ../../src/lib/fxl/memory/weak_ptr.h

void InvalidateWeakPtrs ()

Call this method to invalidate all existing weak pointers. (Note that

additional weak pointers can be produced even after this is called.)

Defined at line 165 of file ../../src/lib/fxl/memory/weak_ptr.h

bool HasWeakPtrs ()

Call this method to determine if any weak pointers exist. (Note that a

"false" result is definitive, but a "true" result may not be if weak

pointers are held/reset/destroyed/reassigned on other threads.)

Defined at line 175 of file ../../src/lib/fxl/memory/weak_ptr.h