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

#include <weak_ptr.h>

Inheritance diagram for fml::TaskRunnerAffineWeakPtr< T >:
fml::WeakPtr< T >

Public Member Functions

 TaskRunnerAffineWeakPtr ()
 
 TaskRunnerAffineWeakPtr (const TaskRunnerAffineWeakPtr< T > &r)=default
 
template<typename U >
 TaskRunnerAffineWeakPtr (const TaskRunnerAffineWeakPtr< U > &r)
 
 TaskRunnerAffineWeakPtr (TaskRunnerAffineWeakPtr< T > &&r)=default
 
template<typename U >
 TaskRunnerAffineWeakPtr (TaskRunnerAffineWeakPtr< U > &&r)
 
 ~TaskRunnerAffineWeakPtr ()=default
 
TaskRunnerAffineWeakPtr< T > & operator= (const TaskRunnerAffineWeakPtr< T > &r)=default
 
TaskRunnerAffineWeakPtr< T > & operator= (TaskRunnerAffineWeakPtr< T > &&r)=default
 
- Public Member Functions inherited from fml::WeakPtr< T >
 WeakPtr ()
 
 WeakPtr (const WeakPtr< T > &r)=default
 
template<typename U >
 WeakPtr (const WeakPtr< U > &r)
 
 WeakPtr (WeakPtr< T > &&r)=default
 
template<typename U >
 WeakPtr (WeakPtr< U > &&r)
 
virtual ~WeakPtr ()=default
 
WeakPtr< T > & operator= (const WeakPtr< T > &r)=default
 
WeakPtr< T > & operator= (WeakPtr< T > &&r)=default
 
void reset ()
 
 operator bool () const
 
T * get () const
 
T * getUnsafe () const
 
T & operator* () const
 
T * operator-> () const
 

Protected Member Functions

void CheckThreadSafety () const override
 
- Protected Member Functions inherited from fml::WeakPtr< T >
 WeakPtr (T *ptr, fml::RefPtr< fml::internal::WeakPtrFlag > &&flag)
 

Friends

template<typename U >
class TaskRunnerAffineWeakPtr
 
class TaskRunnerAffineWeakPtrFactory< T >
 

Detailed Description

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

Definition at line 151 of file weak_ptr.h.

Constructor & Destructor Documentation

◆ TaskRunnerAffineWeakPtr() [1/5]

template<typename T>
fml::TaskRunnerAffineWeakPtr< T >::TaskRunnerAffineWeakPtr ( )
inline

Definition at line 153 of file weak_ptr.h.

153 : WeakPtr<T>() {}

◆ TaskRunnerAffineWeakPtr() [2/5]

template<typename T>
fml::TaskRunnerAffineWeakPtr< T >::TaskRunnerAffineWeakPtr ( const TaskRunnerAffineWeakPtr< T > &  r)
default

◆ TaskRunnerAffineWeakPtr() [3/5]

template<typename T>
template<typename U >
fml::TaskRunnerAffineWeakPtr< T >::TaskRunnerAffineWeakPtr ( const TaskRunnerAffineWeakPtr< U > &  r)
inline

Definition at line 158 of file weak_ptr.h.

159  : WeakPtr<T>(r), checker_(r.checker_) {}

◆ TaskRunnerAffineWeakPtr() [4/5]

template<typename T>
fml::TaskRunnerAffineWeakPtr< T >::TaskRunnerAffineWeakPtr ( TaskRunnerAffineWeakPtr< T > &&  r)
default

◆ TaskRunnerAffineWeakPtr() [5/5]

template<typename T>
template<typename U >
fml::TaskRunnerAffineWeakPtr< T >::TaskRunnerAffineWeakPtr ( TaskRunnerAffineWeakPtr< U > &&  r)
inline

Definition at line 164 of file weak_ptr.h.

165  : WeakPtr<T>(r), checker_(r.checker_) {}

◆ ~TaskRunnerAffineWeakPtr()

template<typename T>
fml::TaskRunnerAffineWeakPtr< T >::~TaskRunnerAffineWeakPtr ( )
default

Member Function Documentation

◆ CheckThreadSafety()

template<typename T>
void fml::TaskRunnerAffineWeakPtr< T >::CheckThreadSafety ( ) const
inlineoverrideprotectedvirtual

Reimplemented from fml::WeakPtr< T >.

Definition at line 176 of file weak_ptr.h.

176  {
177  FML_DCHECK_TASK_RUNNER_IS_CURRENT(checker_.checker);
178  }
#define FML_DCHECK_TASK_RUNNER_IS_CURRENT(c)

◆ operator=() [1/2]

template<typename T>
TaskRunnerAffineWeakPtr<T>& fml::TaskRunnerAffineWeakPtr< T >::operator= ( const TaskRunnerAffineWeakPtr< T > &  r)
default

◆ operator=() [2/2]

template<typename T>
TaskRunnerAffineWeakPtr<T>& fml::TaskRunnerAffineWeakPtr< T >::operator= ( TaskRunnerAffineWeakPtr< T > &&  r)
default

Friends And Related Function Documentation

◆ TaskRunnerAffineWeakPtr

template<typename T>
template<typename U >
friend class TaskRunnerAffineWeakPtr
friend

Definition at line 182 of file weak_ptr.h.

◆ TaskRunnerAffineWeakPtrFactory< T >

template<typename T>
friend class TaskRunnerAffineWeakPtrFactory< T >
friend

Definition at line 183 of file weak_ptr.h.


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