interface_cast_addref Class Template Reference
[Conversion Library]

#include <comstl/conversion/interface_cast.hpp>

Inheritance diagram for interface_cast_addref:

interface_cast_base

List of all members.


Detailed Description

template<typename I, typename X = ignore_interface_cast_exception>
class comstl::interface_cast_addref< I, X >

Interface cast for raw pointers that does add a net reference count.

This class provides a cast between interface pointers, that adds a net reference count

Parameters:
I The interface pointer type
X The exception type, defaulted to ignore_interface_cast_exception

Public Types

typedef interface_cast_addref
< I, X > 
class_type
 The type of the current parameterisation.
typedef
parent_class_type::interface_pointer_type 
interface_pointer_type
 The interface pointer type.

Public Member Functions

template<typename J>
 interface_cast_addref (J j)
 Constructor that attempts the speculative cast.
 interface_cast_addref (interface_pointer_type pi)
 Constructor that directly casts (without calling QueryInterface()).
 operator interface_pointer_type ()
 A pointer to the acquired interface.

Member Typedef Documentation

The type of the current parameterisation.

Reimplemented from interface_cast_base.

The interface pointer type.

Reimplemented from interface_cast_base.


Constructor & Destructor Documentation

interface_cast_addref ( j  )  [inline, explicit]

Constructor that attempts the speculative cast.

interface_cast_addref ( interface_pointer_type  pi  )  [inline, explicit]

Constructor that directly casts (without calling QueryInterface()).


Member Function Documentation

operator interface_pointer_type (  )  [inline]

A pointer to the acquired interface.


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

Generated on Thu Jun 10 08:58:25 2010 for STLSoft by  doxygen 1.5.6