dxd - dynax driver framework 2.6.0d210
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::resource< invalid_t > Class Template Reference

Windows handle class bill wasn't sure wether an invalid handle is a nullptr or -1. Hence the invalid_t template parameter. (Usually its -1, but i.e. for file mappings its nullptr, etc.). More...

#include <dx_sync.h>

Inheritance diagram for dx::resource< invalid_t >:

Public Member Functions

 dx_catchall_rethrow () virtual void free() noexcept
 operator const os_event () const noexcept
 operator os_event () noexcept
 operator::HANDLE () const noexcept
resourceoperator= (const resource &resource) try
virtual ~resource ()
 the device class destructor

Protected Member Functions

 resource ()=default

Protected Attributes

::HANDLE handle = invalid_t
::HANDLE process = ::GetCurrentProcess()

Detailed Description

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
class dx::resource< invalid_t >

Windows handle class bill wasn't sure wether an invalid handle is a nullptr or -1. Hence the invalid_t template parameter. (Usually its -1, but i.e. for file mappings its nullptr, etc.).

Constructor & Destructor Documentation

◆ resource()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::resource< invalid_t >::resource ( )
protecteddefault
Here is the caller graph for this function:

◆ ~resource()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
virtual dx::resource< invalid_t >::~resource ( )
inlinevirtual

the device class destructor

the underlaying windows APIs is CloseHandle(). for detailed information see http://msdn.microsoft.com/en-us/library/ms724211(VS.85).aspx

Member Function Documentation

◆ dx_catchall_rethrow()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::resource< invalid_t >::dx_catchall_rethrow ( )
inlinenoexcept

◆ operator const os_event()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::resource< invalid_t >::operator const os_event ( ) const
inlinenoexcept

◆ operator os_event()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::resource< invalid_t >::operator os_event ( )
inlinenoexcept

◆ operator::HANDLE()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
dx::resource< invalid_t >::operator::HANDLE ( ) const
inlinenoexcept

◆ operator=()

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
resource & dx::resource< invalid_t >::operator= ( const resource< invalid_t > & resource)
inline
Here is the call graph for this function:

Member Data Documentation

◆ handle

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
::HANDLE dx::resource< invalid_t >::handle = invalid_t
protected

◆ process

template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
::HANDLE dx::resource< invalid_t >::process = ::GetCurrentProcess()
protected

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

(c) copyright 2009 dynamic acoustics e.U. generated on

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.