dxd - dynax driver framework 3.0.1d223
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

virtual void free () noexcept
 operator const os_event () const noexcept
 operator os_event () noexcept
 operator::HANDLE () const noexcept
resource & operator= (const resource &resource)
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

◆ ~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

◆ free()

◆ 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
Here is the caller graph for this function:

◆ operator=()

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

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.