다음을 통해 공유


Module::GenericReleaseNotifier 클래스

현재 모듈의 마지막 개체가 해제될 때 이벤트 처리기를 호출합니다. 이벤트 처리기는 람다, 함수 또는 함수 포인터에 의해 지정됩니다.

구문

template<typename T>
class GenericReleaseNotifier : public ReleaseNotifier;

매개 변수

T
이벤트 처리기의 위치를 포함하는 데이터 멤버 형식입니다.

멤버

공용 생성자

속성 설명
Module::GenericReleaseNotifier::GenericReleaseNotifier Module::GenericReleaseNotifier 클래스의 새 인스턴스를 초기화합니다.

공용 메서드

이름 설명
Module::GenericReleaseNotifier::Invoke 현재 Module::GenericReleaseNotifier 개체와 연결된 이벤트 처리기를 호출합니다.

보호된 데이터 멤버

이름 설명
Module::GenericReleaseNotifier::callback_ 현재 Module::GenericReleaseNotifier 개체와 연결된 람다, 펀터 또는 포인터-함수 이벤트 처리기를 보유합니다.

상속 계층 구조

ReleaseNotifier

GenericReleaseNotifier

요구 사항

헤더: module.h

네임스페이스: Microsoft::WRL

Module::GenericReleaseNotifier::callback_

현재 Module::GenericReleaseNotifier 개체와 연결된 람다, 펀터 또는 포인터-함수 이벤트 처리기를 보유합니다.

T callback_;

Module::GenericReleaseNotifier::GenericReleaseNotifier

Module::GenericReleaseNotifier 클래스의 새 인스턴스를 초기화합니다.

GenericReleaseNotifier(
   T callback,
   bool release
) throw() : ReleaseNotifier(release), callback_(callback);

매개 변수

callback
괄호 함수 연산자(())를 사용하여 호출할 수 있는 람다, 펀터 또는 포인터-함수 이벤트 처리기입니다.

release
true 기본 모듈::ReleaseNotifier::Release() 메서드를 호출할 수 있도록 지정하고, 그렇지 않으면 지정합니다false.

Module::GenericReleaseNotifier::Invoke

현재 Module::GenericReleaseNotifier 개체와 연결된 이벤트 처리기를 호출합니다.

void Invoke();