Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
dart::ScopedHandle< T > Class Template Reference

#include <type_testing_stubs.h>

Public Member Functions

 ScopedHandle (ReusableHandleStack< T > *stack)
 
 ~ScopedHandle ()
 
Toperator* ()
 
Toperator-> ()
 

Detailed Description

template<typename T>
class dart::ScopedHandle< T >

Definition at line 168 of file type_testing_stubs.h.

Constructor & Destructor Documentation

◆ ScopedHandle()

template<typename T >
dart::ScopedHandle< T >::ScopedHandle ( ReusableHandleStack< T > *  stack)
inlineexplicit

Definition at line 170 of file type_testing_stubs.h.

171 : stack_(stack), handle_(stack_->Obtain()) {}

◆ ~ScopedHandle()

template<typename T >
dart::ScopedHandle< T >::~ScopedHandle ( )
inline

Definition at line 173 of file type_testing_stubs.h.

173{ stack_->Release(handle_); }

Member Function Documentation

◆ operator*()

template<typename T >
T & dart::ScopedHandle< T >::operator* ( )
inline

Definition at line 175 of file type_testing_stubs.h.

175{ return *handle_; }

◆ operator->()

template<typename T >
T * dart::ScopedHandle< T >::operator-> ( )
inline

Definition at line 176 of file type_testing_stubs.h.

176{ return handle_; }

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