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

#include <secure_socket_utils.h>

Public Member Functions

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

Detailed Description

template<typename T, typename E, void(*)(E *) func>
class dart::bin::ScopedSSLStackType< T, E, func >

Definition at line 149 of file secure_socket_utils.h.

Constructor & Destructor Documentation

◆ ScopedSSLStackType()

template<typename T , typename E , void(*)(E *) func>
dart::bin::ScopedSSLStackType< T, E, func >::ScopedSSLStackType ( T obj)
inlineexplicit

Definition at line 151 of file secure_socket_utils.h.

151: obj_(obj) {}

◆ ~ScopedSSLStackType()

template<typename T , typename E , void(*)(E *) func>
dart::bin::ScopedSSLStackType< T, E, func >::~ScopedSSLStackType ( )
inline

Definition at line 153 of file secure_socket_utils.h.

153 {
154 if (obj_ != nullptr) {
155 OPENSSL_sk_pop_free_ex(reinterpret_cast<OPENSSL_STACK*>(obj_),
156 call_free_func, free_func);
157 }
158 }

Member Function Documentation

◆ get() [1/2]

template<typename T , typename E , void(*)(E *) func>
T * dart::bin::ScopedSSLStackType< T, E, func >::get ( )
inline

Definition at line 160 of file secure_socket_utils.h.

160{ return obj_; }

◆ get() [2/2]

template<typename T , typename E , void(*)(E *) func>
const T * dart::bin::ScopedSSLStackType< T, E, func >::get ( ) const
inline

Definition at line 161 of file secure_socket_utils.h.

161{ return obj_; }

◆ release()

template<typename T , typename E , void(*)(E *) func>
T * dart::bin::ScopedSSLStackType< T, E, func >::release ( )
inline

Definition at line 163 of file secure_socket_utils.h.

163 {
164 T* result = obj_;
165 obj_ = nullptr;
166 return result;
167 }
GAsyncResult * result
#define T
Definition: precompiler.cc:65

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