Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Friends | List of all members
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 103 of file ref_counted.h.

103{}

◆ ~RefCountedThreadSafe()

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

Definition at line 108 of file ref_counted.h.

108{}

Member Function Documentation

◆ Release()

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

Definition at line 71 of file ref_counted.h.

71 {
73 delete static_cast<const T*>(this);
74 }
75 }
#define T
Definition: precompiler.cc:65

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: