Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Public Member Functions
ChainableEventHandler< T > Class Template Reference

Base class for chainable EventHandlers. More...

#include <ChainableEventHandler.h>

Public Member Functions

bool addEventHandler (T *event_handler)
 Add an EventHandler to be notified of events sent to this ChainableEventHandler. More...
 
void removeEventHandler (T *target)
 Remove an EventHandler previously added with addEventHandler. More...
 

Detailed Description

template<typename T>
class ChainableEventHandler< T >

Base class for chainable EventHandlers.

Acts as a collection of discrete EventHandlers that can be linked together and notified when relevant events happen

Definition at line 29 of file ChainableEventHandler.h.

Member Function Documentation

bool addEventHandler ( T *  event_handler)

Add an EventHandler to be notified of events sent to this ChainableEventHandler.

Parameters
[in]event_handlerHandler to add to chain
Return values
trueif adding EventHandler was successful, false otherwise

Definition at line 54 of file ChainableEventHandler.h.

void removeEventHandler ( T *  target)

Remove an EventHandler previously added with addEventHandler.

Parameters
[in]event_handlerPointer to event handler to remove

Definition at line 74 of file ChainableEventHandler.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.