GenericListener class for observing specific messages. This class template implements an listener for a specific message type.
More...
#include <ikarus/utils/listener/genericlistener.hh>
|
| using | Token = std::shared_ptr< void > |
| |
template<typename BC>
class Ikarus::GenericListener< BC >
- Template Parameters
-
| M | The type of messages to be listend to. |
◆ Token
◆ GenericListener()
template<typename BC >
template<typename F >
Initializes the listener with a specific message and a function to be executed upon listening.
- Template Parameters
-
| F | Type of the function to be executed. |
- Parameters
-
| message | The message to be listend to. |
| f | The function to be executed with the current step. |
◆ subscribe()
- Template Parameters
-
- Parameters
-
| broadcaster | the broadcaster |
| callback | the function |
◆ unSubscribe()
| void Ikarus::Listener::unSubscribe |
( |
const Token & |
token | ) |
|
|
inlineinherited |
◆ unSubscribeAll()
| void Ikarus::Listener::unSubscribeAll |
( |
| ) |
|
|
inlineinherited |
◆ unSubscribeLast()
| void Ikarus::Listener::unSubscribeLast |
( |
| ) |
|
|
inlineinherited |
◆ updateImpl()
The documentation for this class was generated from the following file: