forward_cloning_policy Struct Template Reference
[Collections Library]

#include <comstl/collections/enumeration_policies.hpp>

Inheritance diagram for forward_cloning_policy:

repeatable_enumerator_tag cloneable_enumerator_tag

List of all members.


Detailed Description

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

Policy type that causes COM enumerator cloning according the STL Forward Iterator concept.

Parameters:
I The enumeration interface

Public Types

typedef I interface_type
typedef interface_type * value_type

Public Member Functions

typedef comstl_ns_qual_std (forward_iterator_tag) iterator_tag_type

Static Public Member Functions

static interface_type * get_working_instance (interface_type *root)
 Gets a working "copy" of the given enumerator root.
static interface_type * share (interface_type *src)
 "Clones" the given COM enumerator interface according to the Forward Iterator concept
static bool clone (interface_type *src, interface_type **pdest)

Member Function Documentation

static interface_type* get_working_instance ( interface_type *  root  )  [inline, static]

Gets a working "copy" of the given enumerator root.

Remarks:
For this policy, this calls Clone(), and throws an instance of comstl::clone_failure if that fails (or returns NULL if exception support is disabled).

References COMSTL_ASSERT.

static interface_type* share ( interface_type *  src  )  [inline, static]

"Clones" the given COM enumerator interface according to the Forward Iterator concept

References COMSTL_ASSERT.


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

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