Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::bin::RefCntReleaseScope< Target > Class Template Reference

#include <reference_counting.h>

Public Member Functions

 RefCntReleaseScope (ReferenceCounted< Target > *t)
 
 ~RefCntReleaseScope ()
 

Detailed Description

template<class Target>
class dart::bin::RefCntReleaseScope< Target >

Definition at line 100 of file reference_counting.h.

Constructor & Destructor Documentation

◆ RefCntReleaseScope()

template<class Target >
dart::bin::RefCntReleaseScope< Target >::RefCntReleaseScope ( ReferenceCounted< Target > *  t)
inlineexplicit

Definition at line 102 of file reference_counting.h.

102 : target_(t) {
103 ASSERT(target_ != nullptr);
104 ASSERT(target_->ref_count() > 0);
105 }
#define ASSERT(E)

◆ ~RefCntReleaseScope()

Definition at line 106 of file reference_counting.h.

106{ target_->Release(); }

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