![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cHandlePtr.h>
Public Member Functions | |
| cHandlePtr (_TYPE_HAND h=nullptr) noexcept | |
| ~cHandlePtr () | |
| bool | isValidHandle () const noexcept |
| operator _TYPE_HAND () const noexcept | |
| _TYPE_HAND | operator-> () const noexcept |
| _TYPE_HAND | get_Handle () const noexcept |
| _TYPE_HAND & | ref_Handle () noexcept |
| void | CloseHandle () |
| void | AttachHandle (_TYPE_HAND h) |
| _TYPE_HAND | DetachHandle () noexcept |
Static Public Member Functions | |
| static void | CloseHandle (_TYPE_HAND h) |
| MUST Implement versions of this for each _TYPE_HAND. More... | |
Protected Member Functions | |
| void | CloseHandleLast () |
Protected Member Functions inherited from Gray::cNonCopyable | |
| cNonCopyable () noexcept | |
| Force the use of Factory creation via protected constructor. More... | |
| ~cNonCopyable () noexcept | |
Generic handle/pointer that requires an open/close operation. The underlying type is a pointer more or less. Assumes handle has been declared as a pointer type with DECLARE_HANDLE() and STRICT or similar.
|
inlineexplicitnoexcept |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
MUST Implement versions of this for each _TYPE_HAND.
|
inlineprotected |
Assume destruction or my caller will clear m_h
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |