Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::bin::ScopedSSLType< T, free_func > Class Template Reference

#include <secure_socket_utils.h>

Public Member Functions

 ScopedSSLType (T *obj)
 
 ~ScopedSSLType ()
 
Tget ()
 
const Tget () const
 
Trelease ()
 

Detailed Description

template<typename T, void(*)(T *) free_func>
class dart::bin::ScopedSSLType< T, free_func >

Definition at line 122 of file secure_socket_utils.h.

Constructor & Destructor Documentation

◆ ScopedSSLType()

template<typename T , void(*)(T *) free_func>
dart::bin::ScopedSSLType< T, free_func >::ScopedSSLType ( T obj)
inlineexplicit

Definition at line 124 of file secure_socket_utils.h.

124: obj_(obj) {}

◆ ~ScopedSSLType()

template<typename T , void(*)(T *) free_func>
dart::bin::ScopedSSLType< T, free_func >::~ScopedSSLType ( )
inline

Definition at line 126 of file secure_socket_utils.h.

126 {
127 if (obj_ != nullptr) {
128 free_func(obj_);
129 }
130 }

Member Function Documentation

◆ get() [1/2]

template<typename T , void(*)(T *) free_func>
T * dart::bin::ScopedSSLType< T, free_func >::get ( )
inline

Definition at line 132 of file secure_socket_utils.h.

132{ return obj_; }

◆ get() [2/2]

template<typename T , void(*)(T *) free_func>
const T * dart::bin::ScopedSSLType< T, free_func >::get ( ) const
inline

Definition at line 133 of file secure_socket_utils.h.

133{ return obj_; }

◆ release()

template<typename T , void(*)(T *) free_func>
T * dart::bin::ScopedSSLType< T, free_func >::release ( )
inline

Definition at line 135 of file secure_socket_utils.h.

135 {
136 T* result = obj_;
137 obj_ = nullptr;
138 return result;
139 }
GAsyncResult * result
#define T
Definition: precompiler.cc:65

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