STM32LIB
Public Member Functions | Protected Types | Protected Attributes | List of all members
wink::signal< Slot > Struct Template Reference

#include <signal.h>

Public Member Functions

void insertSubscriber (const slot_type &slot)
 
bool removeSubscriber (const slot_type &slot)
 
template<class... Args>
void raiseEvent (Args &&...args) const
 

Protected Types

typedef Slot slot_type
 

Protected Attributes

std::forward_list< slot_type_slots
 

Member Typedef Documentation

template<class Slot>
typedef Slot wink::signal< Slot >::slot_type
protected

Member Function Documentation

template<class Slot>
void wink::signal< Slot >::insertSubscriber ( const slot_type slot)
inline

Connects a slot to the signal

Parameters
slotThe slot you wish to connect
See also
bind To bind a slot to a function
template<class Slot>
bool wink::signal< Slot >::removeSubscriber ( const slot_type slot)
inline

Disconnects a slot from the signal

Parameters
slotThe slot you wish to disconnect
See also
bind To bind a slot to a function
template<class Slot>
template<class... Args>
void wink::signal< Slot >::raiseEvent ( Args &&...  args) const
inline

Emits the events you wish to send to the call-backs

Parameters
argsThe arguments to emit to the slots connected to the signal

Member Data Documentation

template<class Slot>
std::forward_list<slot_type> wink::signal< Slot >::_slots
protected

The documentation for this struct was generated from the following file: