OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::Win::ScopedHANDLE Class Reference

#include <scoped_handle.hpp>

Public Types

typedef HANDLE base_type
 

Public Member Functions

 ScopedHANDLE ()
 
 ScopedHANDLE (HANDLE h)
 
HANDLE release ()
 
bool defined () const
 
HANDLE operator() () const
 
HANDLE * ref ()
 
void reset (HANDLE h)
 
void reset ()
 
void replace (HANDLE h)
 
bool close ()
 
 ~ScopedHANDLE ()
 
 ScopedHANDLE (ScopedHANDLE &&other) noexcept
 
ScopedHANDLEoperator= (ScopedHANDLE &&other) noexcept
 

Private Member Functions

 ScopedHANDLE (const ScopedHANDLE &)=delete
 
ScopedHANDLEoperator= (const ScopedHANDLE &)=delete
 

Private Attributes

HANDLE handle
 

Detailed Description

Definition at line 23 of file scoped_handle.hpp.

Member Typedef Documentation

◆ base_type

Definition at line 29 of file scoped_handle.hpp.

Constructor & Destructor Documentation

◆ ScopedHANDLE() [1/4]

openvpn::Win::ScopedHANDLE::ScopedHANDLE ( const ScopedHANDLE )
privatedelete

◆ ScopedHANDLE() [2/4]

openvpn::Win::ScopedHANDLE::ScopedHANDLE ( )
inline

Definition at line 31 of file scoped_handle.hpp.

◆ ScopedHANDLE() [3/4]

openvpn::Win::ScopedHANDLE::ScopedHANDLE ( HANDLE  h)
inlineexplicit

Definition at line 36 of file scoped_handle.hpp.

◆ ~ScopedHANDLE()

openvpn::Win::ScopedHANDLE::~ScopedHANDLE ( )
inline

Definition at line 93 of file scoped_handle.hpp.

◆ ScopedHANDLE() [4/4]

openvpn::Win::ScopedHANDLE::ScopedHANDLE ( ScopedHANDLE &&  other)
inlinenoexcept

Definition at line 98 of file scoped_handle.hpp.

Member Function Documentation

◆ close()

bool openvpn::Win::ScopedHANDLE::close ( )
inline

Definition at line 80 of file scoped_handle.hpp.

Here is the caller graph for this function:

◆ defined()

bool openvpn::Win::ScopedHANDLE::defined ( ) const
inline

Definition at line 48 of file scoped_handle.hpp.

Here is the caller graph for this function:

◆ operator()()

HANDLE openvpn::Win::ScopedHANDLE::operator() ( ) const
inline

Definition at line 53 of file scoped_handle.hpp.

◆ operator=() [1/2]

ScopedHANDLE & openvpn::Win::ScopedHANDLE::operator= ( const ScopedHANDLE )
privatedelete

◆ operator=() [2/2]

ScopedHANDLE & openvpn::Win::ScopedHANDLE::operator= ( ScopedHANDLE &&  other)
inlinenoexcept

Definition at line 104 of file scoped_handle.hpp.

◆ ref()

HANDLE * openvpn::Win::ScopedHANDLE::ref ( )
inline

Definition at line 58 of file scoped_handle.hpp.

Here is the caller graph for this function:

◆ release()

HANDLE openvpn::Win::ScopedHANDLE::release ( )
inline

Definition at line 41 of file scoped_handle.hpp.

Here is the caller graph for this function:

◆ replace()

void openvpn::Win::ScopedHANDLE::replace ( HANDLE  h)
inline

Definition at line 75 of file scoped_handle.hpp.

Here is the caller graph for this function:

◆ reset() [1/2]

void openvpn::Win::ScopedHANDLE::reset ( )
inline

Definition at line 69 of file scoped_handle.hpp.

◆ reset() [2/2]

void openvpn::Win::ScopedHANDLE::reset ( HANDLE  h)
inline

Definition at line 63 of file scoped_handle.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ handle

HANDLE openvpn::Win::ScopedHANDLE::handle
private

Definition at line 113 of file scoped_handle.hpp.


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