LPUNKNOWN_policy Struct Reference
[COM Utility Library]

#include <comstl/util/value_policies.hpp>

List of all members.


Detailed Description

Value policy for LPUNKNOWN.

See also:
comstl::collection_sequence

comstl::enumerator_sequence


Public Types

typedef LPUNKNOWN 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 the LPUNKNOWN 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 the LPUNKNOWN 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 the LPUNKNOWN 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