Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
fml::WeakContainer Class Reference

#include <weak_nsobject.h>

Inheritance diagram for fml::WeakContainer:
fml::RefCountedThreadSafe< WeakContainer > fml::internal::RefCountedThreadSafeBase

Public Member Functions

 WeakContainer (id object, const debug::DebugThreadChecker &checker)
 
id object ()
 
void nullify ()
 
- Public Member Functions inherited from fml::RefCountedThreadSafe< WeakContainer >
void Release () const
 
- Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase
void AddRef () const
 
bool HasOneRef () const
 
void AssertHasOneRef () const
 

Additional Inherited Members

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

Detailed Description

Definition at line 76 of file weak_nsobject.h.

Constructor & Destructor Documentation

◆ WeakContainer()

fml::WeakContainer::WeakContainer ( id  object,
const debug::DebugThreadChecker checker 
)
explicit

Definition at line 16 of file weak_nsobject.mm.

17 : object_(object), checker_(checker) {}

Member Function Documentation

◆ nullify()

void fml::WeakContainer::nullify ( )
inline

Definition at line 85 of file weak_nsobject.h.

85{ object_ = nil; }

◆ object()

id fml::WeakContainer::object ( )
inline

Definition at line 80 of file weak_nsobject.h.

80 {
81 CheckThreadSafety();
82 return object_;
83 }

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