Flutter Engine
fml::TaskRunnerAffineWeakPtrFactory< T > Class Template Reference

#include <weak_ptr.h>

Public Member Functions

 TaskRunnerAffineWeakPtrFactory (T *ptr)
 
 ~TaskRunnerAffineWeakPtrFactory ()
 
TaskRunnerAffineWeakPtr< T > GetWeakPtr () const
 

Detailed Description

template<typename T>
class fml::TaskRunnerAffineWeakPtrFactory< T >

Definition at line 144 of file weak_ptr.h.

Constructor & Destructor Documentation

◆ TaskRunnerAffineWeakPtrFactory()

template<typename T>
fml::TaskRunnerAffineWeakPtrFactory< T >::TaskRunnerAffineWeakPtrFactory ( T *  ptr)
inlineexplicit

Definition at line 275 of file weak_ptr.h.

276  : ptr_(ptr), flag_(fml::MakeRefCounted<fml::internal::WeakPtrFlag>()) {
277  FML_DCHECK(ptr_);
278  }
#define FML_DCHECK(condition)
Definition: logging.h:86

◆ ~TaskRunnerAffineWeakPtrFactory()

Definition at line 280 of file weak_ptr.h.

280  {
281  CheckThreadSafety();
282  flag_->Invalidate();
283  }

Member Function Documentation

◆ GetWeakPtr()

template<typename T>
TaskRunnerAffineWeakPtr<T> fml::TaskRunnerAffineWeakPtrFactory< T >::GetWeakPtr ( ) const
inline

Definition at line 287 of file weak_ptr.h.

287  {
288  return TaskRunnerAffineWeakPtr<T>(ptr_, flag_.Clone(), checker_);
289  }
RefPtr< T > Clone() const
Definition: ref_ptr.h:180

The documentation for this class was generated from the following file: