interface_cast_noaddref Class Template Reference
[Conversion Library]

#include <comstl/conversion/interface_cast.hpp>

Inheritance diagram for interface_cast_noaddref:

interface_cast_base

List of all members.


Detailed Description

template<typename I, typename X = throw_bad_interface_cast_exception>
class comstl::interface_cast_noaddref< I, X >

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

This class provides a cast between interface pointers, but does not add a net reference count

Parameters:
I The interface pointer type
X The exception type
Note:
This class is not defined when exception-handling is not supported.
Examples:

by_library/conversion/interface_cast/interface_cast.cpp.


Public Types

typedef
interface_cast_noaddref< I, X > 
class_type
 The type of the current parameterisation.
typedef
parent_class_type::interface_pointer_type 
interface_pointer_type
 The interface pointer type.
typedef
parent_class_type::interface_type 
interface_type
 The interface type.
typedef protect_refcount
< interface_type > * 
protected_interface_pointer_type

Public Member Functions

template<typename J>
 interface_cast_noaddref (J &j)
 Constructor that attempts the speculative cast.
 interface_cast_noaddref (interface_pointer_type pi)
 Constructor that directly casts (without calling QueryInterface()).
protected_interface_pointer_type operator-> () const
 Access the members of the interface.

Member Typedef Documentation

The type of the current parameterisation.

Reimplemented from interface_cast_base.

The interface pointer type.

Reimplemented from interface_cast_base.

The interface type.

Reimplemented from interface_cast_base.


Constructor & Destructor Documentation

interface_cast_noaddref ( J &  j  )  [inline, explicit]

Constructor that attempts the speculative cast.

References COMSTL_MESSAGE_ASSERT.

interface_cast_noaddref ( interface_pointer_type  pi  )  [inline, explicit]

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

References COMSTL_MESSAGE_ASSERT.


Member Function Documentation

protected_interface_pointer_type operator-> (  )  const [inline]

Access the members of the interface.

References COMSTL_MESSAGE_ASSERT.


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