Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Latest commit

 

History

History
105 lines (71 loc) · 4.4 KB

module-methodreleasenotifier-class.md

File metadata and controls

105 lines (71 loc) · 4.4 KB
description title ms.date ms.topic f1_keywords helpviewer_keywords ms.assetid
Learn more about: Module::MethodReleaseNotifier Class
Module::MethodReleaseNotifier Class
09/17/2018
reference
module/Microsoft::WRL::Module::MethodReleaseNotifier
module/Microsoft::WRL::Module::MethodReleaseNotifier::Invoke
module/Microsoft::WRL::Module::MethodReleaseNotifier::method_
module/Microsoft::WRL::Module::MethodReleaseNotifier::MethodReleaseNotifier
module/Microsoft::WRL::Module::MethodReleaseNotifier::object_
Microsoft::WRL::Module::MethodReleaseNotifier class
Microsoft::WRL::Module::MethodReleaseNotifier::Invoke method
Microsoft::WRL::Module::MethodReleaseNotifier::method_ data member
Microsoft::WRL::Module::MethodReleaseNotifier::MethodReleaseNotifier, constructor
Microsoft::WRL::Module::MethodReleaseNotifier::object_ data member
5c2902be-964b-488f-9f1c-adf504995cbc

Module::MethodReleaseNotifier Class

Invokes an event handler when the last object in the current module is released. The event handler is specified by an object and its pointer-to-a-method member.

Syntax

template<typename T>
class MethodReleaseNotifier : public ReleaseNotifier;

Parameters

T
The type of the object whose member function is the event handler.

Members

Public Constructors

Name Description
Module::MethodReleaseNotifier::MethodReleaseNotifier Initializes a new instance of the Module::MethodReleaseNotifier class.

Public Methods

Name Description
Module::MethodReleaseNotifier::Invoke Calls the event handler associated with the current Module::MethodReleaseNotifier object.

Protected Data Members

Name Description
Module::MethodReleaseNotifier::method_ Holds a pointer to the event handler for the current Module::MethodReleaseNotifier object.
Module::MethodReleaseNotifier::object_ Holds a pointer to the object whose member function is the event handler for the current Module::MethodReleaseNotifier object.

Inheritance Hierarchy

ReleaseNotifier

MethodReleaseNotifier

Requirements

Header: module.h

Namespace: Microsoft::WRL

Module::MethodReleaseNotifier::Invoke

Calls the event handler associated with the current Module::MethodReleaseNotifier object.

void Invoke();

Module::MethodReleaseNotifier::method_

Holds a pointer to the event handler for the current Module::MethodReleaseNotifier object.

void (T::* method_)();

Module::MethodReleaseNotifier::MethodReleaseNotifier

Initializes a new instance of the Module::MethodReleaseNotifier class.

MethodReleaseNotifier(
   _In_ T* object,
   _In_ void (T::* method)(),
   bool release) throw() :
            ReleaseNotifier(release), object_(object),
            method_(method);

Parameters

object
An object whose member function is an event handler.

method
The member function of parameter object that is the event handler.

release
Specify true to enable calling the underlying Module::ReleaseNotifier::Release() method; otherwise, specify false.

Module::MethodReleaseNotifier::object_

Holds a pointer to the object whose member function is the event handler for the current Module::MethodReleaseNotifier object.

T* object_;