template<class T>
redhand::event class

A general class for raising events, specific events types should be a subclass of this general event.

Template parameters
T The type of the object that raised the event.

Constructors, destructors, conversion operators

event(T* raiser)
Construct a new event object as an event raiser.

Public functions

auto getRaiser() -> T*
Get the Raiser of the event.

Protected variables

T* m_raiser
A pointer to the object that raised the event.

Function documentation

template<class T>
redhand::event<T>::event(T* raiser)

Construct a new event object as an event raiser.

Parameters
raiser

template<class T>
T* redhand::event<T>::getRaiser()

Get the Raiser of the event.

Returns T* a pointer to the raiser of the event