Udostępnij za pośrednictwem


Implements — Struktura

Implementuje metody QueryInterface i GetIid dla podanych interfejsów.

template <
   typename I0,
   typename I1 = Details::Nil,
   typename I2 = Details::Nil,
   typename I3 = Details::Nil,
   typename I4 = Details::Nil,
   typename I5 = Details::Nil,
   typename I6 = Details::Nil,
   typename I7 = Details::Nil,
   typename I8 = Details::Nil,
   typename I9 = Details::Nil
>
struct __declspec(novtable) Implements : Details::ImplementsHelper<RuntimeClassFlags<WinRt>, typename Details::InterfaceListHelper<I0, I1, I2, I3, I4, I5, I6, I7, I8, I9>::TypeT>, Details::ImplementsBase;
template <
   int flags,
   typename I0,
   typename I1,
   typename I2,
   typename I3,
   typename I4,
   typename I5,
   typename I6,
   typename I7,
   typename I8
>
struct __declspec(novtable) Implements<RuntimeClassFlags<flags>, I0, I1, I2, I3, I4, I5, I6, I7, I8> : Details::ImplementsHelper<RuntimeClassFlags<flags>, typename Details::InterfaceListHelper<I0, I1, I2, I3, I4, I5, I6, I7, I8>::TypeT>, Details::ImplementsBase;

Parametry

  • I0
    Identyfikator interfejsu zerowego. (Obowiązkowe)

  • I1
    Identyfikator pierwszego interfejsu. (Opcjonalne)

  • I2
    Identyfikator drugiego interfejsu. (Opcjonalne)

  • I3
    Identyfikator trzeciego interfejsu. (Opcjonalne)

  • I4
    Identyfikator czwartego interfejsu. (Opcjonalne)

  • I5
    Identyfikator piątego interfejsu. (Opcjonalne)

  • I6
    Identyfikator szóstego interfejsu. (Opcjonalne)

  • I7
    Identyfikator siódmego interfejsu. (Opcjonalne)

  • I8
    Identyfikator ósmego interfejsu. (Opcjonalne)

  • I9
    Identyfikator dziewiątego interfejsu. (Opcjonalne)

  • flags
    Flagi konfiguracji dla tej klasy.Jeden lub więcej RuntimeClassType wyliczenia, które są określone w RuntimeClassFlags struktury.

Uwagi

Pochodzi z listy określonych interfejsów i wdraża szablony pomocnika QueryInterface i GetIid.

Każdy I0 przez I9 parametr interfejs musi pochodzić od elementu IUnknown, albo IInspectable, lub ChainInterfaces szablonu.flags Parametr określa, czy obsługa jest generowany IUnknown lub IInspectable.

Elementy członkowskie

Publiczne definicje typów

Nazwa

Opis

ClassFlags

Synonim dla RuntimeClassFlags<WinRt>.

Metody chronione

Nazwa

Opis

Implements::CanCastTo — Metoda

Pobiera wskaźnik do określonego interfejsu.

Implements::CastToUnknown — Metoda

Otrzymuje wskaźnik na podległym interfejsie IUnknown.

Implements::FillArrayWithIid — Metoda

Wstawia określonej przez parametr bieżącego szablonu zerowa do elementu tablicy określony identyfikator interfejsu.

Stałe chronionych

Nazwa

Opis

Implements::IidCount — Stała

Przechowuje liczbę zaimplementowany interfejs identyfikatorów.

Hierarchia dziedziczenia

I0

ChainInterfaces

I0

ImplementsBase

ImplementsHelper

Implements

Wymagania

Nagłówek: implements.h

Przestrzeń nazw: Microsoft::WRL

Zobacz też

Informacje

Microsoft::WRL — Przestrzeń nazw