iceoryx_posh 2.0.8
Loading...
Searching...
No Matches
iox::popo::Listener Class Reference
Inheritance diagram for iox::popo::Listener:
Collaboration diagram for iox::popo::Listener:

Public Types

using Parent = ListenerImpl<MAX_NUMBER_OF_EVENTS_PER_LISTENER>

Protected Member Functions

 Listener (ConditionVariableData &conditionVariableData) noexcept
Protected Member Functions inherited from iox::popo::ListenerImpl< MAX_NUMBER_OF_EVENTS_PER_LISTENER >
 ListenerImpl (ConditionVariableData &conditionVariableData) noexcept

Additional Inherited Members

Public Member Functions inherited from iox::popo::ListenerImpl< MAX_NUMBER_OF_EVENTS_PER_LISTENER >
 ListenerImpl (const ListenerImpl &)=delete
 ListenerImpl (ListenerImpl &&)=delete
ListenerImpl & operator= (const ListenerImpl &)=delete
ListenerImpl & operator= (ListenerImpl &&)=delete
cxx::expected< ListenerError > attachEvent (T &eventOrigin, const EventType eventType, const NotificationCallback< T, ContextDataType > &eventCallback) noexcept
 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.
cxx::expected< ListenerError > attachEvent (T &eventOrigin, const NotificationCallback< T, ContextDataType > &eventCallback) noexcept
 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.
void detachEvent (T &eventOrigin, const EventType eventType) noexcept
 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.
void detachEvent (T &eventOrigin) noexcept
 Detaches an event. Hereby, the event is defined as a class T, the eventOrigin.
uint64_t size () const noexcept
 Returns the size of the Listener.
Static Public Member Functions inherited from iox::popo::ListenerImpl< MAX_NUMBER_OF_EVENTS_PER_LISTENER >
static constexpr uint64_t capacity () noexcept
 Returns the capacity of the Listener.

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