comet::handle_policy_base_t< H, INVALID_HANDLE_ > Class Template Reference
[Com type wrappers.]

#include <handle.h>

Inheritance diagram for comet::handle_policy_base_t< H, INVALID_HANDLE_ >:

Inheritance graph
[legend]
Collaboration diagram for comet::handle_policy_base_t< H, INVALID_HANDLE_ >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef H value_type

Public Member Functions

 handle_policy_base_t ()
 Default constructor.
 handle_policy_base_t (H handle)
 operator H () const throw ()
 Implicit conversion to HANDLE.
bool valid () const
 Is the handle valid?
detach_handle ()
 Detach a raw handle.

Static Public Member Functions

invalid_handle ()
value_type detach (handle_policy_base_t &handle) throw ()
 Detaches currently held handle without closing it.

Protected Member Functions

 ~handle_policy_base_t ()
 Destructor to prevent one of these from being created by itself.
void detach_to (handle_policy_base_t &rhs) throw ()
 Detach the contained handle to the passed in.
get_handle () const
H * get_handle_ptr ()
swap_handle (H new_handle)

Detailed Description

template<typename H, long INVALID_HANDLE_>
class comet::handle_policy_base_t< H, INVALID_HANDLE_ >

Base and policy class for auto_handle_wrap_t type. This provides the destroy/detach operations for auto_handle_wrap_t as well as providing a base class to contain the handle and to add functions to that are specific to the handle type.

See also:
auto_handle_wrap_t


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