dxd - dynax driver framework 2.1.0d58
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

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

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

+ Here is the call graph for this function:

Member Function Documentation

◆ free()

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

◆ 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 Tue Apr 30 2024

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.