Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Public Member Functions | List of all members
sbl::core::patterns::events::EventBroadcaster< Output1Type, Output2Type > Class Template Reference

Generic event broadcaster for two outputs. More...

#include <event_broadcaster.hpp>

Collaboration diagram for sbl::core::patterns::events::EventBroadcaster< Output1Type, Output2Type >:

Public Member Functions

 EventBroadcaster (Output1Type &output1, Output2Type &output2)
 Construct event broadcaster with two outputs.
 
void trigger ()
 Trigger all outputs.
 
void update ()
 Update all outputs.
 

Detailed Description

template<typename Output1Type, typename Output2Type>
class sbl::core::patterns::events::EventBroadcaster< Output1Type, Output2Type >

Generic event broadcaster for two outputs.

Simplified broadcaster for two output types, avoiding complex variadic template constructs. Applications can compose multiple broadcasters if more outputs are needed.

Template Parameters
Output1TypeFirst output device type
Output2TypeSecond output device type

Definition at line 29 of file event_broadcaster.hpp.

Constructor & Destructor Documentation

◆ EventBroadcaster()

template<typename Output1Type , typename Output2Type >
sbl::core::patterns::events::EventBroadcaster< Output1Type, Output2Type >::EventBroadcaster ( Output1Type &  output1,
Output2Type &  output2 
)
inline

Construct event broadcaster with two outputs.

Parameters
output1Reference to first output device
output2Reference to second output device

Definition at line 36 of file event_broadcaster.hpp.

Member Function Documentation

◆ trigger()

template<typename Output1Type , typename Output2Type >
void sbl::core::patterns::events::EventBroadcaster< Output1Type, Output2Type >::trigger ( )
inline

Trigger all outputs.

Definition at line 42 of file event_broadcaster.hpp.

◆ update()

template<typename Output1Type , typename Output2Type >
void sbl::core::patterns::events::EventBroadcaster< Output1Type, Output2Type >::update ( )
inline

Update all outputs.

Definition at line 50 of file event_broadcaster.hpp.


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