interface_policy Struct Template Reference
[COM Utility Library]

#include <comstl/util/value_policies.hpp>

List of all members.


Detailed Description

template<typename I>
struct comstl::interface_policy< I >

Value policy for interface.

Parameters:
I The interface
See also:
comstl::collection_sequence

comstl::enumerator_sequence

Examples:

by_library/com_utility/rot_functions/rot_functions.cpp.


Public Types

typedef I interface_type
typedef interface_type * value_type

Static Public Member Functions

static void init (value_type *p) throw ()
 Initialises an instance.
static void copy (value_type *dest, value_type const *src)
 Initialises an instance from another.
static void clear (value_type *p) throw ()
 Releases an instance.

Member Function Documentation

static void init ( value_type *  p  )  throw () [inline, static]

Initialises an instance.

In the case of an interface pointer type, this involves setting the value to NULL

static void copy ( value_type *  dest,
value_type const *  src 
) [inline, static]

Initialises an instance from another.

In the case of an interface pointer type, this involves taking a copy of the pointer and, if the source is non-NULL, invoking AddRef()

static void clear ( value_type *  p  )  throw () [inline, static]

Releases an instance.

In the case of an interface pointer type, this involves invoking Release() and setting the value to NULL (unless it is already NULL)


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

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