comet::stl_enumeration_t< Itf, C, T, CONVERTER, TH > Class Template Reference

#include <comet/enum.h>

Inheritance diagram for comet::stl_enumeration_t< Itf, C, T, CONVERTER, TH >:

Inheritance graph
[legend]
Collaboration diagram for comet::stl_enumeration_t< Itf, C, T, CONVERTER, TH >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 stl_enumeration_t (const C &c, TH *pOuter=0, const CONVERTER &converter=CONVERTER())

Public Attributes

const C & container_
C::const_iterator it_
com_ptr< TH > pOuter_
CONVERTER converter_
Interface \p Itf
STDMETHOD( Next )(ULONG celt, T *rgelt, ULONG *pceltFetched)
STDMETHOD( Reset )()
STDMETHOD( Skip )(ULONG celt)
STDMETHOD( Clone )(Itf **ppenum)

Detailed Description

template<typename Itf, typename C, typename T = VARIANT, typename CONVERTER = std::identity<COMET_STRICT_TYPENAME C::value_type>, typename TH = ::IUnknown>
class comet::stl_enumeration_t< Itf, C, T, CONVERTER, TH >

Implements _NewEnum style COM object.
Parameters:
Itf Enumeration Interface.
C STL Style container.
T Iteration Element type (VARIANT)
CONVERTER Converts container element to T type. (std::identity<C::value_type>)
See also:
stl_enumeration create_enum


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