$darkmode
cloe::databroker::Event< TArgs > Class Template Reference

#include <data_broker.hpp>

Public Types

using EventHandler = std::function< void(TArgs...)>
 

Public Member Functions

void add (EventHandler handler)
 
std::size_t count () const
 
void raise (TArgs &&... args) const
 

Detailed Description

template<typename... TArgs>
class cloe::databroker::Event< TArgs >

Abstract event implementation.

Template Parameters
TArgsArguments of the event handler function
Note
: Design-Goals:
  • Design-#1: Unsubscribing from an event is not intended

Member Function Documentation

◆ add()

template<typename... TArgs>
void cloe::databroker::Event< TArgs >::add ( EventHandler  handler)
inline

Add an event handler to this event.

Here is the caller graph for this function:

◆ count()

template<typename... TArgs>
std::size_t cloe::databroker::Event< TArgs >::count ( ) const
inline

Return the number of event handlers subscribed to this event.

◆ raise()

template<typename... TArgs>
void cloe::databroker::Event< TArgs >::raise ( TArgs &&...  args) const
inline

Raise this event.

Parameters
argsParameters of this event

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