|
Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
|
Non-virtual type-erased event sink handle (raw pointer + static function pointer). Zero dynamic heap allocations, zero vtables/RTTI. More...
#include <EventSink.hpp>
Inheritance diagram for corium::BasicEventSink< EventVariant >:
Collaboration diagram for corium::BasicEventSink< EventVariant >:Public Types | |
| using | EventVariantType = EventVariant |
Public Member Functions | |
| BasicEventSink ()=default | |
| BasicEventSink (BasicEventSink &&) noexcept=default | |
| template<typename ConcreteSink > requires (!std::is_same_v<std::decay_t<ConcreteSink>, BasicEventSink>) | |
| BasicEventSink (ConcreteSink &sink) | |
| BasicEventSink (const BasicEventSink &)=default | |
| operator bool () const noexcept | |
| BasicEventSink & | operator= (BasicEventSink &&) noexcept=default |
| BasicEventSink & | operator= (const BasicEventSink &)=default |
| void | post (const EventVariant &event, EventPriority priority=EventPriority::Normal) const |
| Post an event into the event sink with priority (const lvalue overload). | |
| void | post (EventVariant &&event, EventPriority priority=EventPriority::Normal) const |
| Post an event into the event sink with priority (rvalue overload). | |
| template<typename Event > | |
| void | postHighPriority (Event &&event) const |
| Convenience helper for posting high-priority events (e.g. from ISR handlers). | |
Non-virtual type-erased event sink handle (raw pointer + static function pointer). Zero dynamic heap allocations, zero vtables/RTTI.
| EventVariant | The variant type list of supported events. |
| using corium::BasicEventSink< EventVariant >::EventVariantType = EventVariant |
|
default |
|
default |
|
defaultnoexcept |
|
inlineexplicit |
Here is the call graph for this function:
|
inlineexplicitnoexcept |
|
defaultnoexcept |
|
default |
|
inline |
Post an event into the event sink with priority (const lvalue overload).
|
inline |
Post an event into the event sink with priority (rvalue overload).
Here is the caller graph for this function:
|
inline |
Convenience helper for posting high-priority events (e.g. from ISR handlers).
Here is the call graph for this function: