iox::popo::Listener🔗
Inherits from iox::popo::ListenerImpl< MAX_NUMBER_OF_EVENTS_PER_LISTENER >
Public Types🔗
| Name | |
|---|---|
| using ListenerImpl< MAX_NUMBER_OF_EVENTS_PER_LISTENER > | Parent |
Public Functions🔗
| Name | |
|---|---|
| Listener() |
Protected Functions🔗
| Name | |
|---|---|
| Listener(ConditionVariableData & conditionVariableData) |
Additional inherited members🔗
Public Functions inherited from iox::popo::ListenerImpl< MAX_NUMBER_OF_EVENTS_PER_LISTENER >
| Name | |
|---|---|
| ListenerImpl() | |
| ListenerImpl(const ListenerImpl & ) | |
| ListenerImpl(ListenerImpl && ) | |
| ~ListenerImpl() | |
| ListenerImpl & | operator=(const ListenerImpl & ) |
| ListenerImpl & | operator=(ListenerImpl && ) |
| template <typename T ,typename EventType ,typename ContextDataType ,typename =std::enable_if_t cxx::expected< ListenerError > |
attachEvent(T & eventOrigin, const EventType eventType, const NotificationCallback< T, ContextDataType > & eventCallback) Attaches an event. Hereby the event is defined as a class T, the eventOrigin, an enum which further defines the event inside the class and the corresponding callback which will be called when the event occurs. |
| template <typename T ,typename ContextDataType > cxx::expected< ListenerError > |
attachEvent(T & eventOrigin, const NotificationCallback< T, ContextDataType > & eventCallback) Attaches an event. Hereby the event is defined as a class T, the eventOrigin and the corresponding callback which will be called when the event occurs. |
| template <typename T ,typename EventType ,typename =std::enable_if_t void |
detachEvent(T & eventOrigin, const EventType eventType) Detaches an event. Hereby, the event is defined as a class T, the eventOrigin and the eventType with further specifies the event inside of eventOrigin. |
| template <typename T > void |
detachEvent(T & eventOrigin) Detaches an event. Hereby, the event is defined as a class T, the eventOrigin. |
| uint64_t | size() const Returns the size of the Listener. |
| constexpr uint64_t | capacity() Returns the capacity of the Listener. |
Protected Functions inherited from iox::popo::ListenerImpl< MAX_NUMBER_OF_EVENTS_PER_LISTENER >
| Name | |
|---|---|
| ListenerImpl(ConditionVariableData & conditionVariableData) |
Public Types Documentation🔗
using Parent🔗
using iox::popo::Listener::Parent = ListenerImpl<MAX_NUMBER_OF_EVENTS_PER_LISTENER>;
Public Functions Documentation🔗
function Listener🔗
Listener()
Protected Functions Documentation🔗
function Listener🔗
Listener(
ConditionVariableData & conditionVariableData
)
Updated on 18 December 2023 at 13:11:43 CET