handle.h File Reference

#include <comet/config.h>
#include <comet/static_assert.h>
#include <comet/error_fwd.h>
#include <comet/common.h>
#include <comet/assert.h>
#include <algorithm>

Include dependency graph for handle.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  comet
namespace  comet::impl

Classes

class  comet::handle_policy_base_t< H, INVALID_HANDLE_ >
struct  comet::handle_nothrow_error_policy_t
struct  comet::handle_throw_error_policy_t
class  comet::auto_handle_wrap_t< C_, H, INVALID_HANDLE_, ERROR_POLICY >
class  comet::impl::THIS_IS_NOT_ALLOWED
struct  comet::auto_handle_t< ERROR_POLICY >
 Wrapper for HANDLE type. More...
struct  comet::auto_reference_t< T >
 Create a reference object to a handle that doesn't destroy it's contents. More...

Typedefs

typedef auto_handle_t auto_handle
 Auto handle - wrapper for HANLDE.
typedef auto_handle_t< handle_throw_error_policy_t > auto_handle_throw
 Auto handle - throwing wrapper for HANDLE.

Functions

template<typename H, long INVALID_HANDLE_> impl::THIS_IS_NOT_ALLOWED CloseHandle (const handle_policy_base_t< H, INVALID_HANDLE_ > &)
 Disallow closing of a const handle.
template<typename H, long INVALID_HANDLE_> bool CloseHandle (handle_policy_base_t< H, INVALID_HANDLE_ > &rhs)
 Make sure closing of an auto_handle_wrap_t detaches first.


Detailed Description

Wrapper for Win32 API HANDLE.