Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
fml::WeakNSObjectFactory< NST > Class Template Reference

#include <weak_nsobject.h>

Public Member Functions

 WeakNSObjectFactory (NST *object)
 
 ~WeakNSObjectFactory ()
 
WeakNSObject< NST > GetWeakNSObject () const
 

Detailed Description

template<typename NST>
class fml::WeakNSObjectFactory< NST >

Definition at line 255 of file weak_nsobject.h.

Constructor & Destructor Documentation

◆ WeakNSObjectFactory()

fml::WeakNSObjectFactory< NST >::WeakNSObjectFactory ( NST *  object)
inlineexplicit

Definition at line 257 of file weak_nsobject.h.

257 {
258 FML_DCHECK(object);
259 container_ = [CRBWeakNSProtocolSentinel containerForObject:object threadChecker:checker_];
260 }
#define FML_DCHECK(condition)
Definition logging.h:103
fml::RefPtr< fml::WeakContainer > containerForObject:threadChecker:(id object,[threadChecker] debug::DebugThreadChecker checker)

◆ ~WeakNSObjectFactory()

Definition at line 262 of file weak_nsobject.h.

262{ CheckThreadSafety(); }

Member Function Documentation

◆ GetWeakNSObject()

WeakNSObject< NST > fml::WeakNSObjectFactory< NST >::GetWeakNSObject ( ) const
inline

Definition at line 266 of file weak_nsobject.h.

266{ return WeakNSObject<NST>(container_, checker_); }

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