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

#include <ref_counted.h>

Inheritance diagram for fml::RefCountedThreadSafe< T >:
fml::internal::RefCountedThreadSafeBase flutter::RefCountedDartWrappable< T >

Public Member Functions

void Release () const
 
- Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase
void AddRef () const
 
bool HasOneRef () const
 
void AssertHasOneRef () const
 

Protected Member Functions

 RefCountedThreadSafe ()
 
 ~RefCountedThreadSafe ()
 
- Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase
 RefCountedThreadSafeBase ()
 
 ~RefCountedThreadSafeBase ()
 
bool Release () const
 
void Adopt ()
 

Friends

template<typename U >
RefPtr< U > AdoptRef (U *)
 

Detailed Description

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

Definition at line 63 of file ref_counted.h.

Constructor & Destructor Documentation

◆ RefCountedThreadSafe()

template<typename T>
fml::RefCountedThreadSafe< T >::RefCountedThreadSafe ( )
inlineprotected

Definition at line 102 of file ref_counted.h.

102 {}

◆ ~RefCountedThreadSafe()

template<typename T>
fml::RefCountedThreadSafe< T >::~RefCountedThreadSafe ( )
inlineprotected

Definition at line 107 of file ref_counted.h.

107 {}

Member Function Documentation

◆ Release()

template<typename T>
void fml::RefCountedThreadSafe< T >::Release ( ) const
inline

Definition at line 71 of file ref_counted.h.

Referenced by flutter::RefCountedDartWrappable< ColorFilter >::ReleaseDartWrappableReference().

71  {
73  delete static_cast<const T*>(this);
74  }

Friends And Related Function Documentation

◆ AdoptRef

template<typename T>
template<typename U >
RefPtr<U> AdoptRef ( U *  )
friend

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